共用方式為


CMDIFrameWndEx::SetupToolbarMenu

Modifies a toolbar object by replacing dummy items with user-defined items.

void SetupToolbarMenu(
   CMenu& menu,
   const UINT uiViewUserToolbarCmdFirst,
   const UINT uiViewUserToolbarCmdLast 
);

Parameters

  • [in] menu
    A reference to a CMenu Class object to be modified.

  • [in] uiViewUserToolbarCmdFirst
    Specifies the first user-defined command.

  • [in] uiViewUserToolbarCmdLast
    Specifies the last user-defined command.

Requirements

Header: afxMDIFrameWndEx.h

See Also

Reference

CMDIFrameWndEx Class

Hierarchy Chart