BCGControlBar Pro for MFC
UINT BCGM_DELETETOOLBAR

The BCGM_DELETETOOLBAR message is sent to the main frame window when the user is about to delete a toolbar in customization mode.

Parameters
wParamthis parameter is not used.
lParamPointer to a CBCGPToolBar object to be deleted.
Returns
nonzero if a toolbar can't be deleted; otherwise 0.

Process this message to take additional actions upon deletion of a toolbar in customization mode. You should call the default handler (CBCGPToolBar::OnToolbarDelete), which deletes the toolbar. The default handler returns a value, which indicates whether it is possible to delete the toolbar.