Mar 272008
 

To retrieve type of a HGDIOBJ object call GetObjectType.

E.g.

GetObjectType( hGdiObj );

Possible return values takenĀ from MSDN…

OBJ_BITMAP
OBJ_BRUSH
OBJ_COLORSPACE
OBJ_DC
OBJ_ENHMETADC
OBJ_ENHMETAFILE
OBJ_EXTPEN
OBJ_FONT
OBJ_MEMDC
OBJ_METAFILE
OBJ_METADC
OBJ_PAL
OBJ_PEN
OBJ_REGION

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.