August 24th, 2013, 01:39 AM
Menubar / Toolbar problem
Hi .. I need to activate and deactivate Menubar and Toolbar time to time.
I have written code :
CWnd * pFrame = (CWnd *)AfxGetMainWnd();
CMenu * menu = pFrame->GetMenu();
for (int mq = 0;mq < menu->GetMenuItemCount();mq++)
I just change attibute MF_GRAYED to MF_ENABLED as required.
This works fine with MenuBar but there is a problem with ToolBar .
Toolbar Enable/Disable doesnot happen properly.
Thanking you ...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.