CBitmap::CreateBitmap

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

Syntax

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

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

Remarks

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

See Also

CBitmap Overview, CBitmap Member Functions, Graphical Drawing Object Classes, CDC::SelectObject, CGdiObject::DeleteObject, CDC::BitBlt