Share via


CMenu::InsertMenuItem

Inserts a new menu item at the specified position in a menu.

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

Parameters

  • uItem
    See description of uItem in InsertMenuItem in the Windows SDK.

  • lpMenuItemInfo
    See description of lpmii in InsertMenuItem in the Windows SDK.

  • fByPos
    See description of fByPosition in InsertMenuItem in the Windows SDK.

Remarks

This function wraps InsertMenuItem, described in the Windows SDK.

Requirements

Header: afxwin.h

See Also

Reference

CMenu Class

Hierarchy Chart

Other Resources

CMenu Members