BCGControlBar Pro for MFC
virtual void CBCGPControlBar::OnPressCloseButton ( )
virtual

Called by the framework when user presses the close button on control bar's caption.

Override it in a derived class to get notified about this event.