Forum: C++ Nov 22nd, 2008 |
| Replies: 10 Views: 1,969 Hope this works....
CMainFrame* pFrame ; // Memeber variable
pFrame = (CMainFrame*) AfxGetMainWnd();
pFrame->GetMenu()
->EnableMenuItem(ID_SORT_MANAGER,MF_GRAYED); |
Forum: C++ Nov 22nd, 2008 |
| Replies: 10 Views: 1,969 use the same logic for disabling the MANAGER menu also, Here u r graying it i think this shud also work for MANAGER. i will also try to write a dummy pgm and test this. |
Forum: C++ Nov 22nd, 2008 |
| Replies: 10 Views: 1,969 So what u r saying is
first the menu looked like this
SORT
|
MANAGER
Here Enabling and Disabling of manager Menu can be done,
now u have updated the manager menu like this : |
Forum: C++ Nov 22nd, 2008 |
| Replies: 10 Views: 1,969 I have faced this problem before....
just go to the menu right click on it ,
say add event handler, Add the ONUpdate
event handler. U will have to enable
Every menu, Sub Menu OnUpdate event... |