CBitmap::LoadMappedBitmap

BOOL LoadMappedBitmap( UINT nIDBitmap**, UINT** nFlags = 0, LPCOLORMAP lpColorMap = NULL, int nMapSize = 0 );

Return Value

Nonzero if successful; otherwise 0.

Parameters

nIDBitmap

The ID of the bitmap resource.

nFlags

A flag for a bitmap. Can be zero or CMB_MASKED.

lpColorMap

A pointer to a COLORMAP structure that contains the color information needed to map the bitmaps. If this parameter is NULL, the function uses the default color map.

nMapSize

The number of color maps pointed to by lpColorMap.

Remarks

Call this member function to load a bitmap and map the colors to the current system colors. By default, LoadMappedBitmap will map colors commonly used in button glyphs.

For information about creating a mapped bitmap, see the Windows function and the structure in the Win32 Programmer’s Reference.

CBitmap OverviewClass MembersHierarchy Chart

See Also   ,