Link to home
Start Free TrialLog in
Avatar of gelco
gelco

asked on

AppendMenu and RemoveMenu API?

The following functions can be used to add and remove items to/from the control menu. Can anyone explain to me what are the values and meanings for the:

1. wFlags (in both functions)
2. wIDNewItem

Declare Function RemoveMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long

Declare Function AppendMenu Lib "user32" Alias "AppendMenuA" (ByVal hMenu As Long, ByVal wFlags As Long, ByVal wIDNewItem As Long, ByVal lpNewItem As String) As Long

RetVal = RemoveMenu (hMenu, nPosition, wFlags)
RetVal = AppendMenu (hMenu, wFlags, wIDNewItem, lpNewItem)

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of MikeP090797
MikeP090797

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial