BCGControlBar Pro for MFC
UINT BCGM_ON_PRESS_CLOSE_BUTTON

This message is sent to a parent of CBCGPDockingControlBar when user presses close button on control bar's caption.

Parameters
wParamThis parameter is not used.
lParamPoints to a docking control bar whose close button is pressed.
Returns
should return TRUE if a control bar can't be closed; otherwise 0.

Process this message to be notified about pressing of close button.