|
-
Jul 18th, 2000, 01:32 PM
#1
Thread Starter
Hyperactive Member
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.
-
Jul 18th, 2000, 11:12 PM
#2
Lively Member
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.
-
Jul 19th, 2000, 07:49 AM
#3
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|