This documentation is archived and is not being maintained.


Sets the list of commands that are always displayed when a user opens a menu.

static void __stdcall SetBasicCommands(
   CList<UINT,UINT>& lstCommands 

[in] lstCommands

A reference to a CList object that contains a collection of commands.

A basic command is always displayed when the menu is opened. This method is meaningful when the user chooses to view recently used commands.

Use the CMFCToolBar::AddBasicCommand method to add a command to the list of basic commands. Use the CMFCToolBar::GetBasicCommands method to retrieve the list of basic commands that is used by your application.

See the Explorer sample for an example that uses this method.

Header: afxtoolbar.h