次の方法で共有


GetObjectType (Compact 2013)

3/28/2014

This function returns the type of the specified object.

Syntax

DWORD GetObjectType(
  HGDIOBJ h
); 

Parameters

  • h
    [in] Handle to the graphics object.

Return Value

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

If the function fails, the return value is zero.

To get extended error information, call GetLastError.

Requirements

Header

windows.h

Library

coredll.lib

See Also

Reference

GDI Functions
GetObject
SelectObject