Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CGdiObject::DeleteObject
CGdiObject                                  Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void DeleteObject();
 
  Remarks
 
  Deletes the attached Windows GDI object from memory by freeing all
  system storage associated with the Windows GDI object. The storage
  associated with the C++ CGdiObject object is not affected by this call.
  An application should not call DeleteObject on a CGdiObject object that
  is currently selected into a device context.
 
  When a pattern brush is deleted, the bitmap associated with the brush is
  not deleted. The bitmap must be deleted independently.
 
  See Also
 
  CGdiObject::Detach
 
 
                                     -♦-