Reputation: 109
I generated a MDI tabbed CView project using App. wizard using Personalized menu behavior. How can i disable personalized menu behaviour ( i dont want it), because i want to see the whole menu at once when i click it. Do i have to generate the project all over again or can i change something in the code to disable it ?
Upvotes: 1
Views: 410
Reputation: 19030
In your CMainFrame::OnCreate
method, find the comment that says // enable menu personalization
.
Following this will be a couple dozen lines of code that builds a CList
of commands, and then calls CMFCToolbar::SetBasicCommands()
.
Remove the CList
and the AddTail
calls that build the list. And remove the call to SetBasicCommands
. Your menu will now be a “normal” non-personalized menu.
Upvotes: 2