BCGControlBar Pro for MFC
static BOOL CBCGPToolBar::IsCommandPermitted ( UINT  uiCmd)
inlinestatic

Determines whether the command is allowed to be executed or not.

Returns
Nonzero if the specified command is permitted; otherwise 0.

This static member function checks if the specified by uiCmd command belongs to the global list of non-permitted commands or not.

You can manipulate the list of permitted commands by SetNonPermittedCommands().

Parameters
uiCmdSpecifies the command to check.