This documentation is archived and is not being maintained.

CToolBar::LoadBitmap 

Call this member function to load the bitmap specified by lpszResourceName or nIDResource.


BOOL LoadBitmap(
   LPCTSTR lpszResourceName 
);
BOOL LoadBitmap(
   UINT nIDResource 
);

Parameters

lpszResourceName

Pointer to the resource name of the bitmap to be loaded.

nIDResource

Resource ID of the bitmap to be loaded.

Nonzero if successful; otherwise 0.

The bitmap should contain one image for each toolbar button. If the images are not of the standard size (16 pixels wide and 15 pixels high), call SetSizes to set the button sizes and their images.

Show: