The information in this article applies to:
SUMMARYIn some cases, you might need to know whether a particular bitmap handle references a DIB section or a device-dependent bitmap. To discern between the two bitmap types, call GetObject() on the handle and get it to fill out a BITMAP structure. After the call to GetObject(), the bmBits field of the BITMAP structure will contain a pointer to the surface of the DIB section if the handle references a DIB section and NULL if the handle references a device-dependent bitmap (DDB). MORE INFORMATIONSample Code
if (!GetObject(hBitmap, sizeof(bm), &bm)) return FALSE; // It's not even a handle to a bitmap!
REFERENCES
For additional information on DIB sections, please see the following
article in the Microsoft Knowledge Base:
Additional query words: kbDSupport kbGDI kbBitmap
Keywords : kbWinOS2000 |
Last Reviewed: December 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |