?
Solved

Loading Logo for a window

Posted on 2001-06-27
2
Medium Priority
?
185 Views
Last Modified: 2013-11-20
i have created a window with no titlebar.
now i want to load an icon or a logo for that in a CPOint(10,10).

i have used standard icon with LoadIcon and drawicon methods. it is working fine with these options.

my Query is:
now i want to load an icon of my own by providing the path of the logo or icon.


plz send ur suggestions immly.

thanx in advance

0
Comment
Question by:vanithavalli
[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
2 Comments
 
LVL 6

Accepted Solution

by:
MichaelS earned 200 total points
ID: 6230371
you can use LoadImage instead of LoadIcon and you have to specify LR_LOADFROMFILE as a flag. Something like that:

HANDLE hIcon = LoadImage(NULL, "c:\\temp\\myicon.ico", IMAGE_ICON, 0, 0, LR_LOADFROMFILE);

PS: don't forget to call DestroyIcon when you don't need it any more.
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 9490137
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by : MichaelS

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Roshan Davis
EE Cleanup Volunteer
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month9 days, 15 hours left to enroll

762 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