Hi!
We found a handle to the icon in the title bar, but no way to exchange with
our own one. Does anybody know, how to load an icon in the title bar.
Thank you in advance!
Best regards,
Ingmar Brumm.
Ingmar Brumm Lise-Meitner-Str. 1-7, 24223 Raisdorf
xxxxx@netzservice.de Tel: +49 4307 839570 Fax: +49 4307 900212
Please have a look at www.netzservice.de/home/colorpn/
Hello,
Use SetClassLong(hwnd, GCL_HICON, icon);
Regards,
Giga
ColorPartner GmbH wrote:
Hi!
We found a handle to the icon in the title bar, but no way to exchange with
our own one. Does anybody know, how to load an icon in the title bar.
Thank you in advance!
Best regards,
Ingmar Brumm.
Ingmar Brumm Lise-Meitner-Str. 1-7, 24223 Raisdorf
xxxxx@netzservice.de Tel: +49 4307 839570 Fax: +49 4307 900212
Please have a look at www.netzservice.de/home/colorpn/
You are currently subscribed to ntdev as: xxxxx@ParadigmGeo.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)
–
Gregory Giguashvili
Software Engineer
Email: xxxxx@ParadigmGeo.com
Tel: 972-9-9709379 Fax: 972-3-9709337
Paradigm Geophysical Ltd.
http://www.math.tau.ac.il/~gregoryg
From: “ColorPartner GmbH”
Sent: Thursday, July 20, 2000 5:18 AM
> Hi!
>
> We found a handle to the icon in the title bar, but no way to exchange
with
> our own one. Does anybody know, how to load an icon in the title bar.
Did you even try looking in your Win32 API help file before posting this?
You can set the icon of a window using the WM_SETICON message.
- Matt
From: “Giga Giguashvili”
Sent: Thursday, July 20, 2000 9:03 AM
> Hello,
>
> Use SetClassLong(hwnd, GCL_HICON, icon);
No, this sets the icon for all windows of a given class. While this might
be fine if the class is a custom one registered by your app for its own use,
it would be very bad to do for, say, a window of the standard DIALOG class.
In any case, the preferred method to set the icon of a specific window is to
send a WM_SETICON message to it.
- Matt