Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disabling Menu Items

Status
Not open for further replies.

moonoo

Programmer
May 17, 2000
62
US
Hi
I want to disable some menu items if one menu item
is selected ..How do i do it ..Now i am using
OnUpdateCommand Handler ..That works fine for
2 or 3 menus with some flags. But if i want to disable
more menu items this becomes a very lengthy procedure..
Is there some other way out...
En early reply is eagerly awaited...
 
Hi, I would do it this way:
Set some bool variable(s) for storing state of menus( enabled, checked, ... )
For each menu item override UPDATE_COMMAND_UI...
pCmdUI->Enable( m_bSomeBoolVariable );
Changing of variable changes state of menu...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top