void CBCGPCaptionBar::SetButton | ( | LPCTSTR | lpszLabel, |
UINT | uiCmdUI, | ||
BarElementAlignment | btnAlignmnet = ALIGN_LEFT , |
||
BOOL | bHasDropDownArrow = TRUE |
||
) |
Sets the button on a caption bar.
Call this function to set the button on a caption bar. Any caption bar can contain only one button.
Use RemoveButton() to remove the button. Use EnableButton() to enable and disable the button. The button can be forced to retain the "pressed" state by SetButtonPressed().
lpszLabel | Specifies the button's text label. |
uiCmdUI | Specifies the button's command ID. |
btnAlignmnet | Specifies the button's alignment. |
bHasDropDownArrow | Tells whether the button displays a drop down arrow. For the "message bar mode" this flag is (usually) turned off. |