Solved

Replacing MFC Default Icon

Posted on 2004-04-03
4
709 Views
Last Modified: 2012-08-13
I read the tutorial at:

http://codeproject.com/gdi/replaceicon.asp

It works fine, but I after I have compiled my solution, there is no icon at the title bar of the dialog! What might I be doing wrong?

Many thanks,
Amarjit
0
Comment
Question by:AmarjitSingh
4 Comments
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 10747524
Can you see your icon in the resource editor? I usually do not replace the MAINFRAME icon, but I create a new one by importing an icon file into my project. I then replace the line that selects the icon for the project. Where and how this needs to be done depends on your project type. It's best to just search for IDR_MAINFRAME across all your project files.

0
 

Author Comment

by:AmarjitSingh
ID: 10747752
I accidently stumbled upon the answer myself. It turned out that when I re-imported a new icon from a resource, I did not rename it to "IDR_MAINFRAME", which the compiler did not spot previously, but has just now.

Sorry for any inconvienience I may have caused - but I shall see if it is necessary that I delete this question.
0
 
LVL 2

Accepted Solution

by:
Lunchy earned 0 total points
ID: 10779188
Closed, 50 points refunded.
Lunchy
Friendly Neighbourhood Community Support Admin
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

760 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

19 Experts available now in Live!

Get 1:1 Help Now