
Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
On Sun, 14 Sep 2003 18:13:28 +0200, Mattias Sjögren
<mattias.dont.want.spam@mvps.org> wrote:
>Jeff,
>
[quoted text clipped - 9 lines]
>
>Mattias
Mattias
I am beginning to think you are my personal adviser :-))
SendMessage with WM_ICON works fine thank you.
I am still intrigued as to why GetClassLong(GCL_HICON) fails just with
apps written for the .Net framework. Shortcuts to those progs pick up
the correct icon.
Thanks once more.

Signature
Jeff Gaines Damerham Hampshire UK
Mattias Sj?gren - 14 Sep 2003 23:36 GMT
Jeff,
>I am still intrigued as to why GetClassLong(GCL_HICON) fails just with
>apps written for the .Net framework.
Probably because the window class has been registered
(RegisterClassEx) with a NULL icon handle. That doesn't necessarily
indicate an error.
>Shortcuts to those progs pick up the correct icon.
Shortcuts usually an icon resources in the executable file. It doesn't
have to be the same as any icon used for a window (though it often is)
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.