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

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

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().

uiCmdSpecifies the command to check.