INFO: Resource Bitmaps Are Read-Only in Windows CE
Article ID: 168258
Article Last Modified on 10/5/2004
APPLIES TO
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.
Additional query words: 1.00 resource LoadImage DIBSection gdibmp
Keywords: kbdisplay KB168258