Click to See Complete Forum and Search --> : Different icons for same application


vladas
April 14th, 1999, 09:30 AM
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

Gomez Addams
April 14th, 1999, 12:15 PM
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.