Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Replacing MFC Default Icon

Posted on 2004-04-03
4
Medium Priority
?
734 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

  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 …
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
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 additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses
Course of the Month10 days, 16 hours left to enroll

886 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