다음을 통해 공유


CMFCMenuBar::SetDefaultMenuResId

Sets the default menu for a CMFCMenuBar object based on the resource ID.

void SetDefaultMenuResId(
   UINT uiResId
);

Parameters

  • [in] uiResId
    The resource ID for the new default menu.

Remarks

The CMFCMenuBar::RestoreOriginalstate method restores the default menu from the resource file.

Use the CMFCMenuBar::GetDefaultMenuResId method to retrieve the default menu without restoring it.

Requirements

Header: afxmenubar.h

See Also

Reference

CMFCMenuBar Class

Hierarchy Chart

CMFCMenuBar::GetDefaultMenuResId

CMFCMenuBar::RestoreOriginalstate