Solved

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

Posted on 2000-05-17
7
274 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 2

Accepted Solution

by:
Carel earned 50 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Answer accepted
0
 

Author Comment

by:TrainMan
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

763 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

6 Experts available now in Live!

Get 1:1 Help Now