Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 264
  • 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
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

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