I want to check a button in the toolbar, whose button's style is TBBS_CHECKBOX alrealy. I wrote:
m_wndToolBar.SetButtonStyle(0, TBSTYLE_CHECK);
CToolBarCtrl& Ctrl = m_wndToolBar.GetToolBarCtrl();
Ctrl.CheckButton(0);
but it didn't work! However, if I changed CheckButton with some other functions such as DeleteButton, it did work. Why is only the CheckButton unavailable?
Thanks!
m_wndToolBar.SetButtonStyle(0, TBSTYLE_CHECK);
CToolBarCtrl& Ctrl = m_wndToolBar.GetToolBarCtrl();
Ctrl.CheckButton(0);
but it didn't work! However, if I changed CheckButton with some other functions such as DeleteButton, it did work. Why is only the CheckButton unavailable?
Thanks!