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.
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.
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...
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.
Thanks for the input.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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(M AKEINTRESO URCE(IDR_M AINFRAME)) , TRUE);
pFrame->SetIcon(LoadIcon(M
ASKER
Answer accepted
ASKER
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
Thanks again.
David C. Keith, a.k.a. Trainman
davidckeith@netscape.net
if there is too much to post, can you zip it an email it?
[see my profile for email address]