Solved

Replacing MFC Default Icon

Posted on 2004-04-03
4
718 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

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…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

622 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