How to Enable the menu item
-
Hello to every one.. my question is i have a menu bar in that two menus im keeping.. 1. test 2.execute In the above test menu i have some menu items.. while im executing ,my test menu items alone should be enabled.Rest sholud be in disabled state.. if i click first menu item , from the test it should automatically enable the next menu items of execute .. plz help me.. vikram..
-
Hello to every one.. my question is i have a menu bar in that two menus im keeping.. 1. test 2.execute In the above test menu i have some menu items.. while im executing ,my test menu items alone should be enabled.Rest sholud be in disabled state.. if i click first menu item , from the test it should automatically enable the next menu items of execute .. plz help me.. vikram..
-
Hello to every one.. my question is i have a menu bar in that two menus im keeping.. 1. test 2.execute In the above test menu i have some menu items.. while im executing ,my test menu items alone should be enabled.Rest sholud be in disabled state.. if i click first menu item , from the test it should automatically enable the next menu items of execute .. plz help me.. vikram..
Whats the result if you run this code?
CMenu* m_MainMenu= GetMenu();
CMenu* m_Submenu = m_MainMenu->GetSubMenu(0);
m_Submenu->EnableMenuItem(ID_TEST, MF_BYCOMMAND | MF_DISABLED );
WhiteSky