How to Disable Menu item in SDI application
-
Hi ,,,, How to disable Menu item in SDI application.
-
Hi ,,,, How to disable Menu item in SDI application.
Add an ON_UPDATE_COMMAND_UI handler and corresponding handler to enable or disable menu items. Something like... ON_UPDATE_COMMAND_UI( ID_EDIT_CLEAR, ClearAll ), so ClearAll function should have the following signature...
afx_msg void ClearAll(CCmdUI *pCmdUI);
Call pCmdUI->Enable( FALSE ); to disable menuitem.
Nibu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com
-
Hi ,,,, How to disable Menu item in SDI application.
simply add ON_UPDATE_COMMAND_UI event handler for that menu item. and disable menu item. like
pCmdUI->Enable(FALSE);
Mukesh Kumar Software Engineer
-
simply add ON_UPDATE_COMMAND_UI event handler for that menu item. and disable menu item. like
pCmdUI->Enable(FALSE);
Mukesh Kumar Software Engineer
Thanks!!!! it works fine ......
-
simply add ON_UPDATE_COMMAND_UI event handler for that menu item. and disable menu item. like
pCmdUI->Enable(FALSE);
Mukesh Kumar Software Engineer
Thanks!!!!!