Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to implement expandable menus?

Expandable implement menus
0
Posted

How to implement expandable menus?

0

You can take a look at how to do this in the DRAWCLI sample. When you open any menu from the menu bar, the only items that are visible at first correspond to basic commands. You will see other items when you click on the Expand button at the bottom of the menu or when you press the CTLT+DOWN_ARROW key combination. The frequently used or basic commands are those that do not depend on usage statistics or a number of clicks. All application commands are registered in the command manager (CExtCmdManager), whose members and methods can be accessed via the global smart pointer variable g_CmdManager with operator ->. The SetBasicCommands() method allows you to replenish the basic commands list. The system commands (from the window’s system menu), OLE commands and the commands relating to MRU files and to MDI windows are automatically considered to be basic.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.