Click to See Complete Forum and Search --> : Document Icons don't match!


BenLiu
October 18th, 1999, 08:14 PM
Hello, everybody:

I am engaged in a project using MFC MDI application framework. In CMyApp::InitInstance(),
I add several document templates into my application, and I hope CWinApp::RegisterShellFileTypes() will register all these document types into Windows registry.
Finally, in Explore and File/Open dialog, I find
those icons appear on screen don't match what I assigned in DevStudio resource editor. What's the problem? I have carefully checked all document resource string and resource symbol, but fail to figure out. Can anybody help me solve this problem.

Maybe I had changed the sequence of assignment of document templates in CMyApp::InitInstance(), but
is it the root cause?

Thanks in advanced. Thanks.

lesner
October 19th, 1999, 02:19 AM
Do you know that you have 2 different icons for each doc?
you've got 16*16 size, and 32*32 size,
you have to change them both!
Les.

JohnCz
October 23rd, 1999, 06:53 PM
You are right on the money! Many programmers do not know about it.


I don't do it for ratings, but appreciation is always in style.
Good luck in your journey in a C++ land.