BCGControlBar Pro for MFC
virtual void CBCGPBaseRibbonElement::OnSetFocus ( BOOL  bSet)

Called by the framework when a ribbon element receives or loses the input focus.

Override this method in a derived class if you wish to be notified about setting focus on a ribbon element.

bSetTRUE: the element receives the input focus; FALSE - loses.