MFC菜单自动折叠的问题

http://social.msdn.microsoft.com/Forums/en-US/vcmfcatl/thread/5482103e-272b-4c9f-bac4-be15f14782bd  解决办法

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<UINT, UINT> lstBasicCommands;

	lstBasicCommands.AddTail(ID_FILE_NEW);
	lstBasicCommands.AddTail(ID_FILE_OPEN);
...
	lstBasicCommands.AddTail(ID_SORTING_GROUPBYTYPE);

	CMFCToolBar::SetBasicCommands(lstBasicCommands);

Remove it.

原文地址:https://www.cnblogs.com/qwcbeyond/p/3006066.html