CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 1999
    Location
    Taiwan, ROC
    Posts
    1

    Document Icons don't match!

    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.




  2. #2

    Re: Document Icons don't match!

    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.


  3. #3
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917

    Re: Document Icons don't match!

    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.
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured