2.2.6.20.5 Menu::DeleteMenu

Description

deletes the specified menu item

Syntax

BOOL DeleteMenu( UINT nPosition, UINT nFlags )

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

Return

returns true if successful else false.

Examples

Remark

See Also

Header to Include

Control.h