Disabling toolbutton
-
I tried to disable the "Save" toolbutton on the toolbar. I tried to set the state of "Save" toolbutton to disabled mode by specifying TBSTATE_INDETERMINATE . But this doesnt disable the save toolbutton. TBBUTTONINFO buttonInfo; buttonInfo.cbSize = sizeof( TBBUTTONINFO ); buttonInfo.dwMask = TBIF_COMMAND; buttonInfo.fsState = TBSTATE_INDETERMINATE ; m_wndToolBar.GetToolBarCtrl().SetButtonInfo(ID2_FILE_SAVE, &buttonInfo); Let me know the exact procedure to do the same. Thanx in advance laiju
-
I tried to disable the "Save" toolbutton on the toolbar. I tried to set the state of "Save" toolbutton to disabled mode by specifying TBSTATE_INDETERMINATE . But this doesnt disable the save toolbutton. TBBUTTONINFO buttonInfo; buttonInfo.cbSize = sizeof( TBBUTTONINFO ); buttonInfo.dwMask = TBIF_COMMAND; buttonInfo.fsState = TBSTATE_INDETERMINATE ; m_wndToolBar.GetToolBarCtrl().SetButtonInfo(ID2_FILE_SAVE, &buttonInfo); Let me know the exact procedure to do the same. Thanx in advance laiju
Check out
ON_UPDATE_COMMAND_UI(ID2_FILE_SAVE, ...)
. In the handler function, you can easily enable/disable the Save button.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
-
Check out
ON_UPDATE_COMMAND_UI(ID2_FILE_SAVE, ...)
. In the handler function, you can easily enable/disable the Save button.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown