INFO: Resource Bitmaps Are Read-Only in Windows CE (168258)



The information in this article applies to:

  • Microsoft Windows CE Operating System, Versions 1.0

This article was previously published under Q168258

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.

Modification Type:MinorLast Reviewed:10/5/2004
Keywords:kbdisplay KB168258