CMFCToolBarEditBoxButton::SetContextMenuID

Specifies the resource ID of the shortcut menu that is associated with the button.

void SetContextMenuID(UINT uiResID);

Parameters

  • [in] uiCmd
    The resource ID of the shortcut menu.

Remarks

The framework uses the resource ID to create the shortcut menu when the user right-clicks the toolbar button.

Requirements

Header: afxtoolbareditboxbutton.h

See Also

Reference

CMFCToolBarEditBoxButton Class

Hierarchy Chart

CMFCToolBarEditBoxButton::GetContextMenuID