CGDIObject

Win32++

CGDIObject Class

Description

This is the class that CBitmap, CBrush, CFont, CPalette, CPen, and CRgn inherit from.

CGDIObject Members

Initialisation and Assignment
CGDIObject
CGDIObject();
Constructor for CGDIObject.
CGDIObject
CGDIObject(const CGDIObject& rhs);
Constructor for CGDIObject that creates a copy. CGDIObjects are reference counted, and each copy manages the same underlying HGDIOBJ. Attach
void Attach(HGDIOBJ hObject);
Attaches a GDI HANDLE to the CGDIObject. The HGDIOBJ will be automatically deleted when the destructor is called unless it is detached. Detach
HGDIOBJ Detach();
Detaches the HGDIOBJ from this object. GetHandle
HGDIOBJ GetHandle() const;
Returns the GDI handle (HGDIOBJ) associated with this object. GetObject
int GetObject(int nCount, LPVOID pObject) const;
Retrieves information for the specified graphics object. operator =
void operator = (HGDIOBJ hObject);
Assigns a HGDIOBJ to the CGDIObject. operator =
CGDIObject& operator = ( const CGDIObject& rhs );
Creates a copy of the CGDIObject. CGDIObjects are reference counted, and each copy manages the same underlying HGDIOBJ.

Remarks

Refer to the Graphics Device Interface section of Using Win32++ for additional information on using this class.

Summary Information

Header file file.h
Win32/64 support Yes
WinCE support Yes