-
CreatePopupMenu
I'm using the CreatePopupMenu & InsertMenu API Calls to create the Favorites menu on the fly. I've already achieved that... however, does anybody know how to detect the click on any of those submenues. What's more... is there anyway to get their handle?
-
Check out this link. You already know how to create the menu, so jump down to the bottom of the code section where it demonstrates how to code the click events for the various items in the menu.
http://www.vbapi.com/ref/c/createpopupmenu.html
-
Menu handle
I've one question... I've just created a menu "Favorites" that will contain all the Favorites' items (I did it on code before). However, I need to have it created on beforehand to be able to populate the menu when the "Favorites" menu is click. And here comes the question, the code you "sent" me says sth like this
' Create the popup menu that will be displayed.
hPopupMenu = CreatePopupMenu()
And hPopupMenu would be the handle of my "Favorites" menu... How do I do to avoid that line and get the handle of my already created menu??