Solved

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

Posted on 2000-05-17
7
309 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
[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
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
Industry Leaders: 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!

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Separate into files by filename 12 92
method notes when mouse over in eclipse 5 94
ShiftLeft challenge 21 95
sumHeights  challenge 17 83
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Suggested Courses

739 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