UINT BCGM_ON_BEFORE_SHOW_PALETTE_CONTEXTMENU |
Sent to Ribbon's parent before a palette context menu is displayed.
wParam | A handle to context menu |
lParam | A pointer to CBCGPBaseRibbonElement that is clicked. |
The framework sends the BCGM_ON_BEFORE_SHOW_PALETTE_CONTEXTMENU message when the user clicks right mouse button on a palette item and a context menu is about to be displayed.
You can process this message and modify popup menus on the fly.