?
Solved

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

Posted on 2000-05-17
7
Medium Priority
?
314 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
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

 
LVL 2

Accepted Solution

by:
Carel earned 200 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

800 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