• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 268
  • Last Modified:

Convert Icon to bitmap

Hi,

I am looking for a way to load an Icon from an ICO file or from an icon library (.dll or .icl), and then convert the HICON handle to a valid HBITMAP.

I know how to load an .ICO file, but don't know how to load one from an library (BTW, how do you get the icon library dialog, the one that allows you to pick one from the library?).

How to display the Icon pick dialog box ?
How to load an certin icon from a library ?
How to covert an HICON to HBITMAP and allow bitmap functions to work on it (while preserving the icon 32-bit data) ?


thanks for your help!


Mike
0
moshem
Asked:
moshem
  • 5
  • 2
1 Solution
 
Roshan DavisCommented:
You can use ExtractIconEx to load icons from executables or from the DLLs...

Need Sample...?

Roshmon
0
 
Roshan DavisCommented:
0
 
moshemAuthor Commented:
Yes, a sample would be great!

How about the two other parts of my question ?

thanks
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
Roshan DavisCommented:
I will try ....

What about your other question (Bitmap Resize)...?

Roshmon
0
 
moshemAuthor Commented:
roshmon, please answer in order to get the points
0
 
Roshan DavisCommented:
Hi, R u still searching for the answer?
Roshmon
0
 
Roshan DavisCommented:
Hi, R u still searching for the answer?
Roshmon
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now