BCGControlBar Pro for MFC
virtual BOOL CBCGPToolbarCustomize::OnAssignKey ( ACCEL *  )

Called by the framework when a new accelerator key is being assigned.

FALSE if the specified key can't be assigned; TRUE if the key can be assigned.

Override this function in a derived class and return FALSE if you want to intercept accelerators being assigned during keyboard customization, and prevent these keys from being assigned. The default implementation does nothing and returns TRUE.