Gdi::GetCurrentObject_I (Windows Embedded CE 6.0)
1/6/2010
This method returns the currently selected object of the specified type.
Syntax
static WINGDIAPI HGDIOBJ WINAPI GetCurrentObject_I(
HDC hdc,
unsigned int uObjectType
);
Parameters
- hdc
[in] Handle to the device context.
uObjectType
[in] Unsigned integer that specifies the object type to be queried.The following table shows the possible values.
Value Description OBJ_PEN
Returns the current selected pen.
OBJ_BRUSH
Returns the current selected brush.
OBJ_PAL
Returns the current selected palette.
OBJ_FONT
Returns the current selected font.
OBJ_BITMAP
Returns the current selected bitmap.
Return Value
The handle of the specified object indicates success. NULL indicates failure.
To get extended error information, call GetLastError.
Remarks
This method is an internal version of the GetCurrentObject function.
An application can use the Gdi::GetCurrentObject_I and Gdi::GetObjectW_I methods to retrieve descriptions of the graphic objects currently selected into the given device context.
Requirements
Header | gdi.hpp |
Windows Embedded CE | Windows CE .NET 4.0 and later |
See Also
Reference
Gdi
GetCurrentObject
Gdi::DeleteObject_I
Gdi::GetObjectW_I
Gdi::SelectObject_I