Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

CMFCToolBar::SetNonPermittedCommands

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

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

[in] lstCommands

A reference to a CList object that contains the commands that cannot be executed by the user.

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.

Header: afxtoolbar.h

Community Additions

ADD
Show:
© 2015 Microsoft