CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 1999
    Location
    France
    Posts
    393

    How to define the correct application icon

    Hi,

    I have an application with conditionnal directive on IDR_MAINFRAME icon so depending on the compilation I do, the icon of the application should changed.

    It is OK when I run the application I always have as "Small icon" and "ALT+TAB icon" the correct one

    The problem is in explorer. I always have the same icon it does not take in account my condition at link.

    Does anyone already experienced that?

    Do you have an idea of what it can be?

    Thabks a lot!

  2. #2
    Join Date
    Jul 2001
    Location
    Netherlands
    Posts
    751

    Re: How to define the correct application icon

    In the .rc file you usually find these lines:

    // Icon with lowest ID value placed first to ensure application icon
    // remains consistent on all systems.

    I think it has to do with that, the icon with the lowest id is probably what explorer sees. After all dynamically you can't change the icon in explorer since the program isn't running in that view.

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