问题笔记1,MFC取消折叠窗口显示的方法由刀豆文库小编整理,希望给你工作、学习、生活带来方便,猜你可能喜欢“mfc窗口关闭过程”。
1.Mfc窗口下拉菜单折叠问题,取消下拉方法:
You don't want the “intellegent menus” feature, some menu items are hidden, and you have to click to show the whole menu?
To disable this feature, go to CMainFrame::OnCreate.You will see some code like this:
// enable menu personalization(most-recently used commands)
// TODO: define your own basic commands, ensuring that each pulldown menu has at least one basic command.CList lstBasicCommands;
lstBasicCommands.AddTail(ID_FILE_NEW);
lstBasicCommands.AddTail(ID_FILE_OPEN);
...lstBasicCommands.AddTail(ID_SORTING_GROUPBYTYPE);
CMFCToolBar::SetBasicCommands(lstBasicCommands);
Remove it.