Bitmaps, Images, and Strings

Initialize a bitmap with the LoadBitmap function. The bitmap you create with this function will be read only. This is because Windows CE does not copy the bitmap into RAM, as Windows-based desktop platforms do.

In Windows CE, the bitmap only exists in a resource, which is part of the program's executable file. When you select the bitmap into a device context, you cannot modify the device context — for example, by drawing text into it — because that would require the ability to write to the bitmap.

Use the LoadImage function to load an image. Windows CE does not support stretching and shrinking of images or any loading options other than LR_DEFAULTCOLOR.

Use the LoadString function to load a string. Windows CE only supports Unicode strings.