ReBar - how to set button state on it?
-
Good Day. Please, can you give me an example how can I change state of the button with some id? I do like this: m_wndReBar.Create(this); m_wndReBar.AddBar(&m_wndToolBar); ... m_wndToolBar.SendMessage(TB_SETSTATE, ID, MAKELONG(TBSTATE_ENABLED, 0)); ... But nothing changes. What's wrong? Or what another ways exists to change the state? Nulla dies sine linea !!!
-
Good Day. Please, can you give me an example how can I change state of the button with some id? I do like this: m_wndReBar.Create(this); m_wndReBar.AddBar(&m_wndToolBar); ... m_wndToolBar.SendMessage(TB_SETSTATE, ID, MAKELONG(TBSTATE_ENABLED, 0)); ... But nothing changes. What's wrong? Or what another ways exists to change the state? Nulla dies sine linea !!!
And if I have a button in ReBar how can I change state of it? Nulla dies sine linea !!!
-
And if I have a button in ReBar how can I change state of it? Nulla dies sine linea !!!
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