Partager via


CGdiObject::GetObjectType

Retrieves the type of the GDI object.

UINT GetObjectType( ) const;

Return Value

The type of the object, if successful; otherwise 0. The value can be one of the following:

  • OBJ_BITMAP   Bitmap

  • OBJ_BRUSH   Brush

  • OBJ_FONT   Font

  • OBJ_PAL   Palette

  • OBJ_PEN   Pen

  • OBJ_EXTPEN   Extended pen

  • OBJ_REGION   Region

  • OBJ_DC   Device context

  • OBJ_MEMDC   Memory device context

  • OBJ_METAFILE   Metafile

  • OBJ_METADC   Metafile device context

  • OBJ_ENHMETAFILE   Enhanced metafile

  • OBJ_ENHMETADC   Enhanced-metafile device context

Requirements

Header: afxwin.h

See Also

Reference

CGdiObject Class

Hierarchy Chart

CGdiObject::GetObject

CDC::SelectObject