DIB_PAL_INDICES and CBM_CREATEDIB Not Supported in Win32s

Last reviewed: November 2, 1995
Article ID: Q108497
The information in this article applies to:
  • Microsoft Win32s versions 1.0, 1.1, and 1.2
  • Microsoft Win32 SDK (Windows 95 only)

The Windows NT implementation of the Win32 application programming interface (API) includes two new flags, DIB_PAL_INDICES and CBM_CREATEDIB, that can be used with various device-independent bitmap (DIB) APIs. These flags are not supported by Windows 3.1, Win32s, or Windows 95.

DIB_PAL_INDICES

In Windows NT, the DIB_PAL_INDICES flag can be used with the following APIs:

   CreateDIBitmap()
   CreateDIBPatternBrush()
   CreateDIBPatternBrushPt()
   SetDIBits()
   GetDIBits()
   SetDIBitsToDevice()
   StretchDIBits()

When the dwUsage parameter is DIB_PAL_INDICES, the associated DIB does not have a color table. In this case, the bitmap bits are indices into the device palette.

Applications written to run on Windows 3.1 or Win32s should use DIB_PAL_COLORS or DIB_RGB_COLORS instead of DIB_PAL_INDICES.

Windows 95 does not support DIB_PAL_INDICES.

CBM_CREATEDIB

In Windows 3.1, CreateDIBitmap() creates a device-dependent bitmap (DDB) from a DIB definition and optionally initializes the DDB. In Windows NT, the CBM_CREATEDIB flag can be used with CreateDIBitmap() to create a new DIB instead of a DDB.

This functionality is not present in Windows 3.1 or Win32s.

Windows 95 does not support CBM_CREATEDIB. Equivalent functionality is provided in Windows 95 by CreateDIBSection().


Additional reference words: 1.00 1.10 1.20 4.00
KBCategory: kbprg
KBSubcategory: GdiBmp W32s


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 2, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.