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.
  
 
 class CGdiObject
◄CObject►                                     ◄Up► ◄Contents► ◄Index► ◄Back►
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  Description
 
  The CGdiObject class provides a base class for various kinds of Windows
  graphical design interface (GDI) objects such as bitmaps, regions,
  brushes, pens, palettes, and fonts. You never create a CGdiObject
  directly. Rather, you create an object from one of its derived classes,
  such as CPen or CBrush.
 
  See Also
 
  ◄CBitmap►, ◄CBrush►, ◄CFont►, ◄CPalette►, ◄CPen►, ◄CRgn►
 
  Public Members
 
  Data Members
 
  ◄m_hObject►   A HANDLE containing the HBITMAP, HPALETTE, HRGN, HBRUSH,
                HPEN, or HFONT attached to this object.
 
  Construction/Destruction
 
  ◄CGdiObject►   Constructs a CGdiObject object.
 
  ◄~CGdiObject►   Destroys 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.
 
 
                                     -♦-