DWORD GetObjectType(hgdiobj) | |||
HGDIOBJ hgdiobj; |
The GetObjectType identifies the type of an object.
hgdiobj
Identifies the object.
If the function is successful, the return value identifies the object, as shown in the following list:
Value | Meaning |
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 |
If the function fails, the return value is zero.
SelectObject GetObject