Solved

Loading Logo for a window

Posted on 2001-06-27
2
176 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
2 Comments
 
LVL 6

Accepted Solution

by:
MichaelS earned 50 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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 Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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.

896 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now