Solved

Replacing MFC Default Icon

Posted on 2004-04-03
4
716 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C++ to C# code conversion issue 4 134
is twain_32.dll cmpatible with windows 10 ? 10 279
gdb doesn't stop on breakpoint 2 143
Error creating a new C++ project in ,net 20 60
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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…

710 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