ADDMENUITEM

Top  Previous  Next

Syntax

ADDMENUITEM(win as WINDOW,pos as UINT,text as STRING,flags as UINT,id as UINT)

Description

Adds an item to an already existing menu by position.

Parameters

win - WINDOW or DIALOG containing menu.

pos - Zero based position of the popup menu to add item to.

text - The text of the new menu item.

flags - State flag of the new menu item.

id - The new menu item identifier.

Return value

None

Remarks

New item is added to the end of the existing popup menu.

See Also: REMOVEMENUITEM, BEGINMENU, BEGININSERTMENU

Example usage

ADDMENUITEM mainwnd, 0, "Quit", 0, 75