Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

GetCurrentObject (Windows CE 5.0)

Windows CE 5.0
Send Feedback

This function returns the currently selected object of the specified type.

HGDIOBJ GetCurrentObject(
  HDC hdc, 
  UINT uObjectType
); 

Parameters

hdc
[in] Handle to the device context.
uObjectType
[in] Specifies the object type to be queried.

It is one of the following values.

ValueDescription
OBJ_PENReturns the current selected pen.
OBJ_BRUSHReturns the current selected brush.
OBJ_PALReturns the current selected palette. Windows CE 1.0 and 1.01 do not support this value.
OBJ_FONTReturns the current selected font.
OBJ_BITMAPReturns 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

An application can use the GetCurrentObject and GetObject functions to retrieve descriptions of the graphic objects currently selected into the given device context.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Windows.h.
Link Library: Coredll.lib.

See Also

DeleteObject | GetObject | SelectObject | GDI Functions


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Show:
© 2015 Microsoft