Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21323

Using TrackPopupMenu API to open menu designed with VB Menu Editor

$
0
0
Hello,
How can I use the TrackPopupMenu API to open a menu designed with Menu Editor that I would normally display through:
Code:

Popupmenu MenuName, Flags, X, Y, DefaultMenu
Specifically, what combination of GetMenu and/or GetSubMenu should I use (or maybe even other API calls) to transform MenuName (a menu object in VB6) to the needed menu handle (LONG value) needed in TrackPopupMenu?
Also, as important as getting the menu to appear is setting the default (bold) menu item through API also.


Waiting for your help...
Thanks in advance.

Viewing all articles
Browse latest Browse all 21323

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>