Solved

Can't get correct app icon to appear on Title Bar.

Posted on 2000-05-17
7
286 Views
Last Modified: 2013-11-20
I'm using Visual Studio Professional Edition, Version 6.0a with Win98.

My app is a SDI with _no_ document.  I've edited the icon for IDR_MAINFRAME (sp?) for both 32x32 and 16x16.  The large icon appears in the About Dialog correctly and I get the proper one for the directory listing.  However, I still get the 'MFC' icon with the blocks on the Title Bar of the Main Frame.  What gives?  How can I fix this?

Thanks in advance.
0
Comment
Question by:TrainMan
7 Comments
 
LVL 10

Expert Comment

by:RONSLOW
ID: 2819462
we'd need to see code.

if there is too much to post, can you zip it an email it?

[see my profile for email address]
0
 

Expert Comment

by:eknguyen
ID: 2819509
Delete the icon (IDR_MAINFRAME ) in ResourceView. Delete the "MFC" .ico and the .ico files associate with it in \\res folder, then try to insert your IDR_MAINFRAME and it's icon again...
0
 

Author Comment

by:TrainMan
ID: 2834445
I reject this not because your answer is bogus, but because it didn't correct my problem.  What happened is the icon changed from the "MFC" blocks to the "MFC" flag.  I am sure now that this is just a sympton of other problems I'm currently experiencing.

Thanks for the input.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 2

Accepted Solution

by:
Carel earned 50 total points
ID: 2928450
What you have is caused by not including doc/view support. Recreate your project and include doc/view support and IDR_MAINFRAME icon changes will be visible in the title bar.
0
 
LVL 2

Expert Comment

by:Carel
ID: 2928493
You can leave out doc/view support and have your icon too by adding this to your apps InitInstance after the call to LoadFrame:

pFrame->SetIcon(LoadIcon(MAKEINTRESOURCE(IDR_MAINFRAME)), TRUE);
0
 

Author Comment

by:TrainMan
ID: 3243010
Answer accepted
0
 

Author Comment

by:TrainMan
ID: 3243011
Thank you Carel.  Sorry for the extra Loooong delay with an answer, but it took this long to get my computer fixed and to get me home from traveling for work.

Thanks again.

David C. Keith, a.k.a. Trainman
davidckeith@netscape.net
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
abstract class with all non abstract mentods 6 76
building a service to accessed via telnet client, want colors ? 4 82
scoreUp challenge 14 57
Problem to event 3 78
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

920 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

12 Experts available now in Live!

Get 1:1 Help Now