Solved

Loading Logo for a window

Posted on 2001-06-27
2
175 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
Comment Utility
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
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Expand macro to ask for filename column 8 34
ORA-01403: no data found 43 82
Tab names are off by one 5 49
java ^ examples 8 57
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

772 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

9 Experts available now in Live!

Get 1:1 Help Now