CToolbar.ChangeBitmapmethod
Retrieves a count of the buttons currently in the toolbar.
Syntax
FUNCTION ChangeBitmap (BYVAL hToolbar AS HWND, BYVAL idButton AS LONG, BYVAL iBitmap AS WORD) AS BOOLEAN
Parameters
| Name | Description | |
|---|---|---|
hToolbar | Handle to the toolbar control. | |
idButton | Command identifier of the button that is to receive a new bitmap. | |
iBitmap | Zero-based index of an image in the toolbar's image list. The system displays the specified image in the button. Set this parameter to I_IMAGECALLBACK, and the toolbar will send the TBN_GETDISPINFO notification to retrieve the image index when it is needed. |
Return value
Returns TRUE if successful, or FALSE otherwise.
Description
Changes the bitmap for a button in a toolbar.
Reference
- Include file
CToolbar.inc - Defined in AfxNova/CToolbar.inc:342
- Documented in Windows/WIndows Controls/CToolbar Class.md
- Topic: CToolbar Class