-
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.
-
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.
-
Thanks, it proved to be really usefull