Resetting a menu or a toolbar. On the menu bar, choose Tools, Customize. On the Commands tab, choose the option button for the type of element that you want to reset. In the list for that type of element, choose the menu or toolbar that you want to reset. I would like to enable and disable one or more toolbar. Enable/Disable Toolbar *Buttons*:: MFC. Just create a handler for UPDATE_COMMAND_UI for the toolbar. I have a dialog in MFC application, which is having menu-bar. Now I have created a toolbar in that dialog using the same command ID which is in the menu-bar. I use to update the menu-item's state and makes it enable/disable as per some check in ON_UPDATE_COMMAND_UI, When I clicks on the menu. But for toolbar I didn't gets these calls to update it's state, If it should be enabled/disabled. Moreover I didn't have any notification when the test fails and I to disable the item. Is there some alternative for doing this?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2018
Categories |