Condividi tramite


CMFCPopupMenu::SetDefaultItem

Sets the default command for the pop-up menu.

void SetDefaultItem(
   UINT uiCmd 
);

Parameters

  • [in] uiCmd
    The menu command ID of the new default command.

Remarks

The default command in the pop-up menu is the command that is selected when the pop-up menu appears.

Requirements

Header: afxpopupmenu.h

See Also

Reference

CMFCPopupMenu Class

Hierarchy Chart