Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Sets the list of commands that are always displayed when a user opens a menu.
static void __stdcall SetBasicCommands(
CList<UINT,UINT>& lstCommands
);
Parameters
- [in] lstCommands
A reference to a CList object that contains a collection of commands.
Remarks
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.
Requirements
Header: afxtoolbar.h