Results 1 to 3 of 3

Thread: CreatePopupMenu

  1. #1

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    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.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    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

  3. #3

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    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
  •  



Click Here to Expand Forum to Full Width