Re: window icons
Hugues Bernard <[email protected]> 13 Feb 2003 20:41:17 +0100
| Newsgroups | gmane.comp.video.gimp.windows.devel |
|---|---|
| Message-ID | <1045165277.636.81.camel@nounours> |
Martyn, Le jeu 13/02/2003 à 13:28, [email protected] a écrit : > Tor et al, > > Note: my understanding of the Windows API is minimal. Note: idem, and sorry for my bad english. > > 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? I may be wrong, but, looking at the gdk win32 specific code, it seems that the win32 implementation of gtk use the same class for every windows of the same process. If you only change HICON (without registering a new class), you'll change it for all the windows... just my 0.02 € Regards Hugues > > 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 > > > To Post a message, send it to: [email protected] > To Unsubscribe, send a blank message to: [email protected] > > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ > > > ------------------------ Yahoo! Groups Sponsor ---------------------~--> Get 128 Bit SSL Encryption! http://us.click.yahoo.com/FpY02D/vN2EAA/xGHJAA/NhFolB/TM ---------------------------------------------------------------------~-> To Post a message, send it to: [email protected] To Unsubscribe, send a blank message to: [email protected] Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/