Contents Index Topic Contents | ||
Previous Topic: Toolbar Control Functions Next Topic: CreateToolbarEx |
CreateMappedBitmap
HBITMAP CreateMappedBitmap( HINSTANCE hInstance, int idBitmap, UINT wFlags, LPCOLORMAP lpColorMap, int iNumMaps );Creates a bitmap for use in a toolbar.
- Returns the handle to the bitmap if successful, or NULL otherwise. To get extended error information, call GetLastError.
- hInstance
- Handle to the module instance with the executable file that contains the bitmap resource.
- idBitmap
- Resource identifier of the bitmap resource.
- wFlags
- Bitmap flag. This parameter can be zero or the following value:
CMB_MASKED Uses a bitmap as a mask. - lpColorMap
- Address of 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.
- iNumMaps
- Number of color maps pointed to by lpColorMap.
The function creates a new bitmap using the bitmap data and colors specified by the bitmap resource and the color mapping information.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.