CBitmap::CreateBitmap

This method initializes a device-dependent memory bitmap with the specified width, height, and bit pattern.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H//PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

BOOL CreateBitmap ( int nWidth, int nHeight, UINT nPlanes, UINT nBitcount, const void* lpBits );

Remarks

Because Windows CE 1.0 only supports gray scale bitmaps, set the nPlanes parameter to 1 and the nBitCountl parameter to either 1 or 2 if you are targeting a platform running on Windows CE 1.0.

See Also

CDC::SelectObject, CGdiObject::DeleteObject, CDC::BitBlt