csvax
Feb 6th, 2001, 01:42 PM
Hi ,
I have a problem to use GetMenu() in OCX. I have a user control with its own popup menu. Inside of this user control , i want to get the handle of that popup menu by using following code:
dim lngMenuHandle as long
lngMenuHandle = GetMenu(usercontrol.hwnd)
But it doesn't work. The return value is always 0. I am able to use that popup menu by using VB method PopupMenu. Can anyone help? Thanks
I have a problem to use GetMenu() in OCX. I have a user control with its own popup menu. Inside of this user control , i want to get the handle of that popup menu by using following code:
dim lngMenuHandle as long
lngMenuHandle = GetMenu(usercontrol.hwnd)
But it doesn't work. The return value is always 0. I am able to use that popup menu by using VB method PopupMenu. Can anyone help? Thanks