共用方式為


CMenu::SetMenuItemInfo

變更與功能表項目相關的資訊。

BOOL SetMenuItemInfo(
   UINT uItem,
   LPMENUITEMINFO lpMenuItemInfo,
   BOOL fByPos = FALSE
);

參數

  • uItem
    請參閱 uItem 的描述。 SetMenuItemInfo 中 Windows SDK。

  • lpMenuItemInfo
    請參閱 lpmii 的描述。 SetMenuItemInfo 中 Windows SDK。

  • fByPos
    請參閱 fByPosition 的描述。 SetMenuItemInfo 中 Windows SDK。

備註

這個包裝函式 SetMenuItemInfo,描述在 Windows SDK。

需求

Header: afxwin.h

請參閱

參考

CMenu 類別

階層架構圖