Gdi::GetCurrentObject_I
This method returns the currently selected object of the specified type.
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 Values
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
OS Versions: Windows CE .NET 4.0 and later.
Header: Gdi.hpp.
See Also
GetCurrentObject | Gdi::DeleteObject_I | Gdi::GetObjectW_I | Gdi::SelectObject_I
Last updated on Wednesday, April 13, 2005
© 2005 Microsoft Corporation. All rights reserved.