Results 1 to 3 of 3

Thread: Adding ImageList to Menu

  1. #1

    Thread Starter
    Hyperactive Member wasiq's Avatar
    Join Date
    Jan 2000
    Location
    Karachi, Sindh, Pakistan
    Posts
    274

    Unhappy

    I am making a program that loads a specified directory into a menu. Its working quite fine except that i am having a few problems loading imagelists into menus. What my program actually is doing is that it gets the default icon from a file and loads it into a picture box through imagelist api. But when i try to load them into the menu they dont show up because I need to have bitmaps as images in order to load them into the menus. Is there some way that I can put the icons into menus? Please help. Reply soon.

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Posts
    115

    Red face

    Um, I think if you go through msdn to use the apis right, you can call CreateCompatibleBitmap to make a handle to a bitmap, then I think you can either use DrawIcon onto the hbitmap and send it to the menu, or Select it into the hbitmap and sent it to the menu. I have no experience with menu icons though so um thats just a few guesses. Well there you go. There are all the api functions http://msdn.microsoft.com/library/ps...icons_1xpv.htm there, and you can go 'icon reference' and then 'icon functions' to get a list of api functions on icons. Well there you go.
    Vuen

  3. #3

    Thread Starter
    Hyperactive Member wasiq's Avatar
    Join Date
    Jan 2000
    Location
    Karachi, Sindh, Pakistan
    Posts
    274
    Thanks, it proved to be really usefull

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