Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Replacing MFC Default Icon

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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

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.

705 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