2.2.6.20.17 Menu::ModifyMenu

Description

Modifies properties of a menu item from a specified position

Syntax

BOOL ModifyMenu( UINT nPosition, UINT nFlags, UINT nIDNewItem = 0, LPCTSTR lpcszNewItem = NULL )

Parameters

nPosition
items command ID or index
nFlags
flag to indicate if nPosition is command ID or index,
could be one of the following, MF_BYCOMMAND or MF_BYPOSITION. Default is MF_BYCOMMAND
nIDNewItem
the new command ID of the item after modification
lpcszNewItem
the new string value of the menu item after modification

Return

returns true if successful else false.

Examples

Remark

See Also

Header to Include

Control.h