INFO: Resource Bitmaps Are Read-Only in Windows CE

ID: Q168258


The information in this article applies to:
  • Microsoft Windows CE, version 1.0


SYMPTOMS

Resource bitmaps, usually loaded with a call to LoadBitmap(), are read- only in Windows CE. This means that if such a bitmap is selected into a memory DC, subsequent drawing functions on that DC fail.


RESOLUTION

To work around this issue, create a second bitmap with a call to CreateCompatibleBitmap() and then BitBlt() the contents of the resource bitmap onto the second bitmap. The second bitmap should be suitable for use with the drawing functions.


STATUS

This behavior is by design.

Additional query words: 1.00 resource LoadImage DIBSection gdibmp

Keywords : kbdisplay kbWinCE
Version : :1.0
Platform : WINDOWS
Issue type :


Last Reviewed: January 13, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.