Solved

Loading Logo for a window

Posted on 2001-06-27
2
177 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
function returning CString in a regular win32 DLL 8 178
Decoding 32 bit binary streams 6 42
Whole sheet autoscrub still needed 19 50
List out all word 7 292
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
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…

777 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