How to refresh ToolBar ???
-
Hello! I use a toolbar and I need to hide/show some of the buttons depending of the "phase" of my program. For this, I use such a command:
m_wndToolBar.GetToolBarCtrl().HideButton(ID_BUTTON,FALSE);
This works when I hide some buttons, but when I want to show them again, they don't reappear (in fact, the size of the toolbar is not updated). I added a call to RecalcLayout() but this doesn't work neither! Any idea? Thanks -
Hello! I use a toolbar and I need to hide/show some of the buttons depending of the "phase" of my program. For this, I use such a command:
m_wndToolBar.GetToolBarCtrl().HideButton(ID_BUTTON,FALSE);
This works when I hide some buttons, but when I want to show them again, they don't reappear (in fact, the size of the toolbar is not updated). I added a call to RecalcLayout() but this doesn't work neither! Any idea? ThanksTake a look at http://www.codeproject.com/useritems/CeMultiBarMenu.asp. Daniel ;) --------------------------- Never change a running system!