BCGControlBar Pro for MFC
UINT BCGM_ON_BEFORE_TOGGLE_RIBBON_MINIMIZE_STATE

Sent to Ribbon's parent before a Ribbon minimize state is changed.

Parameters
wParamTRUE - if Ribbon is going to be minimized, FALSE - if not.
lParamthis parameter is not used.
Returns
the return value is ignored.

The framework sends BCGM_ON_BEFORE_TOGGLE_RIBBON_MINIMIZE_STATE registered message to the Ribbon's parent before a Ribbon minimize state is changed.