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.