|
-
Oct 8th, 2001, 05:07 AM
#1
Thread Starter
Need-a-life Member
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?
Emiliano F. Martín
If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
-
Oct 8th, 2001, 08:16 AM
#2
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
-
Oct 8th, 2001, 01:42 PM
#3
Thread Starter
Need-a-life Member
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??
Emiliano F. Martín
If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|