BCGControlBar Pro for MFC
static void CBCGPToolBar::SetNonPermittedCommands ( CList< UINT, UINT > &  lstCommands,
BOOL  bUpdateExistingToolBars = FALSE,
BOOL  bCheckForChanges = FALSE 
)
static

Sets a list of commands, which are not allowed to be executed by the user.

Use this function to provide a list of commands, which are not allowed to be executed by the user (for security reasons, for example).

When you call the SetNonPermittedCommands function, the previous list of non-permitted commands is cleared.

By default, the list of non-permitted commands is empty.

Parameters
lstCommandsA reference to CList object containing non-permitted commands.
bUpdateExistingToolBarsSet this parameter to TRUE if you wish to updated all existing toolbars (for example, hide buttons with "non-permitted" commands)
bCheckForChangesTells whether the command list should be compared with existing and, if there are no changes, don't perform any actions.