RemoveMenu Function
Declaration
Declare Function RemoveMenu Lib "user32" Alias "RemoveMenu" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long
Description of Function
Removes the specified menu entry.
Parameter Type / Description
hMenu Long / Handle to the menu.
nPosition Long / Identifier to the menu entry to remove. If MF_BYCOMMAND flag is set in the wFlags paprameter then this parameter refers to the command ID of the menu entry to remove. If the MF_BYPOSITION flag is set then this parameter refers to the position of the menu entry to be removed. (Starts at Zero.)
wFlags Long / The constant MF_BYCOMMAND or MF_BYPOSITION.
Return Value
Long / Nonzero on success, Zero on error.
|