GetObjectType (Windows CE 5.0)

Windows CE 5.0
Send Feedback

This function returns the type of the specified object.

DWORD GetObjectType(
  HGDIOBJ h
); 

Parameters

h
[in] Handle to the graphics object.

Return Values

If the function succeeds, the return value identifies the object.

This value can be one of the following.

ValueDescription
OBJ_BITMAPBitmap
OBJ_BRUSHBrush
OBJ_FONTFont
OBJ_PALPalette
OBJ_PENPen
OBJ_REGIONRegion
OBJ_DCDevice context
OBJ_MEMDCMemory device context

Windows CE 1.0 and 1.01 do not support the OBJ_PAL return value.

If the function fails, the return value is zero.

To get extended error information, call GetLastError.

Requirements

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

See Also

GetObject | SelectObject | GDI Functions


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Show: