http://social.msdn.microsoft.com/Forums/en-US/5482103e-272b-4c9f-bac4-be15f14782bd/cmfcmenubar-remove-expand-submenu-double-arrow-display-recently-and-all-available-menu-commands?forum=vcmfcatl

 

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.

相关文章:

  • 2021-10-23
  • 2022-12-23
  • 2021-11-05
  • 2021-08-07
  • 2021-11-01
  • 2022-12-23
  • 2021-12-06
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
  • 2022-12-23
相关资源
相似解决方案