BCGControlBar Pro for MFC
UINT BCGM_PROPERTY_GET_MENU_ITEM_STATE

The BCGM_PROPERTY_GET_MENU_ITEM_STATE is sent to the owner of Property List Control when user shows a context menu with custom item(s).

Parameters
wParamcontains the zero-based index of selected context menu item in the list of custom menu items specified in CBCGPPropList::SetCustomMenuItems.
lParampoints to a CBCGPPropList.
Returns
a combination of MF_CHECKED and MF_GRAYED flags.