BCGControlBar Pro for MFC
static void CBCGPToolbarButton::SetProtectedCommands ( const CList< UINT, UINT > &  lstCmds)

Sets a list of protected commands.

Call this function to set a list of "protected" commands. When a button has the command ID that belongs to the list of protected commands, the button can't be customized.

lstCmdsA reference to CList object containing a collection of command IDs.