Solved

Convert Icon to bitmap

Posted on 2002-07-16
10
253 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
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…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

623 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