CMFCToolBar::SetNonPermittedCommands

 

Sets the list of commands that cannot be executed by the user.

Syntax

static void SetNonPermittedCommands(
   CList<UINT,UINT>& lstCommands 
);

Parameters

  • [in] lstCommands
    A reference to a CList object that contains the commands that cannot be executed by the user.

Remarks

Call this method to prevent the user from selecting certain commands. For example, you might want to prevent the user from selecting certain commands for security reasons. See the MDITabsDemo and MenuSubSet samples for examples that use this method.

This method clears the previous list of non-permitted commands. By default, the list of non-permitted commands is empty.

Requirements

Header: afxtoolbar.h

See Also

CMFCToolBar Class
Hierarchy Chart