CGdiObject::DeleteObject

Deletes the attached Windows GDI object from memory by freeing all system storage associated with the Windows GDI object.

BOOL DeleteObject( );

Возвращаемое значение

Nonzero if the GDI object was successfully deleted; otherwise 0.

Заметки

The storage associated with the 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.

Требования

Header: afxwin.h

См. также

Основные понятия

CGdiObject Class

CGdiObject Members

Hierarchy Chart

CGdiObject::Detach