CToolBarCtrl::ChangeBitmap
Changes the bitmap for a button in the current toolbar control.
BOOL ChangeBitmap(
int idButton,
int iBitmap
);
Параметры
Parameter |
Description |
---|---|
[in] idButton |
Command identifier of the button that is to receive a new bitmap. |
[in] iBitmap |
Zero-based index of an image in the current toolbar control's image list. |
Возвращаемое значение
true if this method is successful; otherwise, false.
Заметки
If this method is successful, the system displays the specified image in the specified button.
This method sends the TB_CHANGEBITMAP message, which is described in the Windows SDK.
Требования
Header: afxcmn.h