Solved

Convert Icon to bitmap

Posted on 2002-07-16
10
248 Views
Last Modified: 2013-12-03
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
Comment
Question by:moshem
  • 5
  • 2
10 Comments
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 7157500
You can use ExtractIconEx to load icons from executables or from the DLLs...

Need Sample...?

Roshmon
0
 
LVL 23

Accepted Solution

by:
Roshan Davis earned 150 total points
ID: 7157508
0
 
LVL 1

Author Comment

by:moshem
ID: 7157509
Yes, a sample would be great!

How about the two other parts of my question ?

thanks
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 23

Expert Comment

by:Roshan Davis
ID: 7157515
I will try ....

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

Roshmon
0
 
LVL 1

Author Comment

by:moshem
ID: 7316787
roshmon, please answer in order to get the points
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 9018806
Hi, R u still searching for the answer?
Roshmon
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 9546631
Hi, R u still searching for the answer?
Roshmon
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows 10 Scheduled Tasks 11 88
Messagebox for a Web Site Application 4 71
Need an intro to -- .Net SQL Authorization Manager 7 88
VIDEO DATASOURCE Control Resize issue 2 20
This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question