CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    How can I change the application Icon...?

    How can I change the application Icon...? I saw almost of the applications today have their own icon when I viewed it with Windows Explorer, but I don't know how to do it.

    Nick (kritaya@www.graffiti.net)



  2. #2
    Guest

    Re: How can I change the application Icon...?

    The answer is:
    1. Create a member variable of HICON type in your MainFrm.h file.
    2. Create a new icon resource using the resource editor given by the Visual Studio.
    3. Load the icon into memory using function LoadIcon() in the OnCreate() handler in MainFrm.cpp file .
    4. Once you get a handle to this icon, in the same OnCreate() handler, use function SetIcon() to set the new Application Icon.


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