window icons
[email protected] Thu, 13 Feb 2003 12:28:58 -0000
| Newsgroups | gmane.comp.video.gimp.windows.devel |
|---|---|
| Message-ID | <B1F38D7B53615140BCEA6677DF9F2F8C01111230@i2km11-ukbr.domain1.systemhost.net> |
Tor et al, Note: my understanding of the Windows API is minimal. I was just looking at the MSDN library to try and see how to set the window icon for each window/dialog in the application. Just to make sure I am starting in the right place, am I right in assuming you DO NOT use the MFC to implement the windows version of GTK. If so, are you using the WNDCLASSEX struct (with RegisterClassEx()) when you create windows!? With in this structure there is the HICON type which is where the icon is set. Would it not be possible to use GetClassInfoEx() which would return the structure for the given window's class, and then change the HICON from there? According to the documentation on RegisterClassEx() for the 'return value' "If the function succeeds, the return value is a class atom that uniquely identifies the class being registered.". If this is the case, when modifying the WNDCLASSEX's HICON should be unique to the window you GetClassInfoEx() on shouldn't it? Regards, Martyn