MFC菜單自動摺疊的問題

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.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章