PRB: IsGDIObject() Enhanced and Renamed to GetObjectType()Last reviewed: December 30, 1996Article ID: Q91072 |
The information in this article applies to:
SYMPTOMSIn the original version of Win32, there is no IsGdiObject() function in the Win32 API. However, the new function GetObjectType can be used as a replacement for IsGDIObject. The changes apply to Windows 95 and Windows NT 4.
CAUSEThe Windows 3.1 IsGDIObject function has been enhanced and renamed to GetObjectType. In addition to verifying that an object handle refers to a GDI object, GetObjectType also returns a value that describes what kind of object the handle represents.
RESOLUTIONYou can use the following macro to aid in porting your programs that were originally designed for Windows 3.1:
#define IsGDIObject(hobj) ((BOOL)GetObjectType(hobj)) |
Additional reference words: 3.10 3.50
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |