CGdiObject::GetObjectType

UINTGetObjectType()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

Remarks

Retrieves the type of the GDI object.

CGdiObject OverviewClass MembersHierarchy Chart

See Also   CGdiObject::GetObject, CDC::SelectObject