Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This method returns the type of the specified object.
static WINGDIAPI DWORD WINAPI GetObjectType_I(HGDIOBJ hgdiobj);
Parameters
- hgdiobj
[in] Handle to the graphics object.
Return Values
If the function succeeds, the return value identifies the object.
The following table shows the possible values.
Value | Description |
---|---|
OBJ_BITMAP | Bitmap |
OBJ_BRUSH | Brush |
OBJ_FONT | Font |
OBJ_PAL | Palette |
OBJ_PEN | Pen |
OBJ_REGION | Region |
OBJ_DC | Device context |
OBJ_MEMDC | Memory device context |
If the function fails, the return value is zero.
To get extended error information, call GetLastError.
Remarks
This method is an internal version of the GetObjectType function.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Gdi.hpp.
See Also
Gdi | GetObjectType | Gdi::GetObjectW_I | Gdi::SelectObject_I
Send Feedback on this topic to the authors