To change the state of button on DialogBar I have used for Disable m_wndToolBar.GetDlgItem(IDC_BUTTON)->EnableWindow(FALSE); for Enable m_wndToolBar.GetDlgItem(IDC_BUTTON)->EnableWindow(TRUE); For unPressed m_wndToolBar.CheckDlgButton(IDC_BUTTON,BST_UNCHECKED); For Pressed m_wndToolBar.CheckDlgButton(IDC_BUTTON,BST_CHECKED); I thing it will also work for Rebars