Click to See Complete Forum and Search --> : How can I open(expand) a menu with code


sakbulak
June 8th, 2004, 08:11 AM
How can I open(expand) a menu with code? For example I want to open "File" menu of my application onclick event of a button.

How can I do?

Thanks in advance.

kirants
June 9th, 2004, 12:23 PM
U mean you just want to popup a menu and not select any menu item ?

sakbulak
June 10th, 2004, 02:22 AM
I dont want create a new menu instance with CreatePopupMenu(). I want to dropdown menu of window.

JohnCz
June 10th, 2004, 06:48 PM
Use SendInput. See MSDN.

Fandu_Nagesh
June 16th, 2004, 10:10 AM
Try GetSubMenu( Hndle, 1). It will open the menu.

I think, you would have tried this?....Right