Link to home
Start Free TrialLog in
Avatar of TrainMan
TrainMan

asked on

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

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.
Avatar of RONSLOW
RONSLOW

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]
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...
Avatar of TrainMan

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Carel
Carel

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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);
Answer accepted
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