Share via


CGdiObject Class Members

Data Members

m_hObject A HANDLE containing the HBITMAP, HPALETTE, HRGN, HBRUSH, HPEN, or HFONT attached to this object.

Construction

CGdiObject Constructs a CGdiObject object.

Operations

GetSafeHandle Returns m_hObject unless this is NULL, in which case NULL is returned.
FromHandle Returns a pointer to a CGdiObject object given a handle to a Windows GDI object.
Attach Attaches a Windows GDI object to a CGdiObject object.
Detach Detaches a Windows GDI object from a CGdiObject object and returns a handle to the Windows GDI object.
DeleteObject Deletes the Windows GDI object attached to the CGdiObject object from memory by freeing all system storage associated with the object.
DeleteTempMap Deletes any temporary CGdiObject objects created by FromHandle.
GetObject Fills a buffer with data that describes the Windows GDI object attached to the CGdiObject object.
CreateStockObject Retrieves a handle to one of the Windows predefined stock pens, brushes, or fonts.
UnrealizeObject Resets the origin of a brush or resets a logical palette.
GetObjectType Retrieves the type of the GDI object.

CGdiObject OverviewBase Class MembersHierarchy Chart