Click to See Complete Forum and Search --> : How to set visible area of a Popup Menu?


Darth Nemesis
February 11th, 2009, 09:19 AM
In my code, I have created a Popup Menu containing a large number of menu items (do not fit in a single view). I display the same using TrackPopupMenuEX on the Menu handle.

The first time around when the Menu pops up, the the top most items of the menu are visible. Now if I scroll down the menu so that some other items are visible and close the menu in this state, the next time around when the same menu is popped up, the menu area and items visible is the same as When I had closed the menu in previous operation. The previous closing state of the menu is some how getting saved automatically.

I want to change this behavior. I want to change it such that the menu area visible on popup starts with the menu item I specify (either by Command ID or Position). Is this possible? How can I achieve it.

Thanks in advance...