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

    Different icons for same application

    Hi there.

    I need to change application icon for different instances at run time. There is a way to do it for minimized windows, but I do not know anything for restored windows.

    Any ideas?

    Respectfully,
    Vladas

    Vladas, The Programmer

  2. #2
    Join Date
    May 1999
    Location
    Oregon, USA
    Posts
    302

    Re: Different icons for same application

    I use this to do it in my CMainFrame class :

    SetClassLong( m_hWnd, GCL_HICON, (LONG)TheApp->m_hAppIcon );

    m_hAppIcon is loaded with LoadIcon by the application class.



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