CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 1999
    Posts
    18

    Binding an application icon

    I used VC .NET 2002 to produce a Win32 app, which is coming along nicely. However, I can't figure out how to bind an application icon to the executable (in Windows Explorer, the executable has a generic icon it got from wizard).

    Any suggestions?

    Thanks, RD

  2. #2
    Join Date
    May 1999
    Location
    DELAWARE, USA
    Posts
    9,917
    Wizard inserts set of generic icons into a resource file. When window class is registered, this setí ID is used to LoadIcon for hIcon member of WNDCLASSEX structure.

    Creating new set and using it to load, or replacing particular device images (16x16) in existing set, you will change icon appearance.
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

  3. #3
    Join Date
    May 1999
    Posts
    18
    I had changed the icon in the resource editor, but for some reason the original ones were still being used.

    I managed to correct the problem after deleting the originals.

    Thanks, RD

  4. #4
    Join Date
    May 1999
    Location
    DELAWARE, USA
    Posts
    9,917
    You are very welcome.
    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