Microsoft Windows CE 3.0  

GetObjectType

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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.

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

Windows CE versions 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

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Wingdi.h   Mgbase.lib
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

GetLastError, GetObject, SelectObject