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(const CGDIObject& rhs);Constructor for CGDIObject that creates a copy. CGDIObjects are reference counted, and each copy manages the same underlying HGDIOBJ.
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.
HGDIOBJ Detach();Detaches the HGDIOBJ from this object.
HGDIOBJ GetHandle() const;Returns the GDI handle (HGDIOBJ) associated with this object.
int GetObject(int nCount, LPVOID pObject) const;Retrieves information for the specified graphics object.
void operator = (HGDIOBJ hObject);Assigns a HGDIOBJ to the CGDIObject.
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 |