🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.windows.ms.programmer
3 messages
3 total messages Started by Nigel Baker Wed, 19 Aug 1992 20:20
Displaying data in an Icon
#484
Author: Nigel Baker
Date: Wed, 19 Aug 1992 20:20
13 lines
939 bytes
I am trying to find out how to make the icon of a minimized 
application display data.

For example the clock program that comes with Windows 3.1 shows
the current time in it's icon when it is minimized.
Does anybody out there know how this is done ?

I'm using TPW ver 1.5 with Whitewater Resource Toolkit.


Nigel Baker, AG Communication Systems, Phoenix, AZ
    UUCP: ...!{ncar!noao!enuucp | att}!gtephx!bakern
INTERNET: gtephx!bakern@enuucp.eas.asu.edu
Re: Displaying data in an Icon
#488
Author: Dave Jones
Date: Fri, 21 Aug 1992 19:13
26 lines
1892 bytes
In article <1992Aug19.202034.20024@gtephx.UUCP> bakern@gtephx.UUCP (Nigel Baker) writes:
>I am trying to find out how to make the icon of a minimized 
>application display data.
>
>For example the clock program that comes with Windows 3.1 shows
>the current time in it's icon when it is minimized.
>Does anybody out there know how this is done ?
>
>I'm using TPW ver 1.5 with Whitewater Resource Toolkit.
>
As somebody else suggested, follow Petzold's example.  However, the
really crucial thing is this: when you register your Window's class,
don't give it an icon.  That way you ensure that all repaint requests
will come to you via the WM_PAINT message.  Then you can test your
window handle with IsIconic() to find out if you have to paint the 
icon or the window.  I use this for a Mac-style trashcan.  I just
use DrawIcon with the plain icon (for empty can) or a bulging icon
(for a can with something in it).  Easy.



-- 
||)) Dump the Whatizit!  Ren and Stimpy for Olympic mascots in '96 ! )))))))|
||)) "What is it, man?!?" ))))))))))))))))))))))))))))))))))))))))))))))))))|
||))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))|
||Dave Jones (dj@ekcolor.ssd.kodak.com) | Eastman Kodak Co. Rochester, NY   |
Re: Displaying data in an Icon
#489
Author: Jeroen W. Pluimers
Date: Fri, 21 Aug 1992 21:30
16 lines
1387 bytes
In article <1992Aug19.202034.20024@gtephx.UUCP> bakern@gtephx.UUCP (Nigel Baker) writes:
>I am trying to find out how to make the icon of a minimized 
>application display data.
>
The trick is to have no ICON, but descent the PAint method and look
at IsIconic(HWindow) and then do the painting.

Look at the OWLDEMOS/GDIDEMO how they do it.

--
    o _   _  _   _   _             voice: +31-2522-20908 (19:00-24:00 UTC)
   / (_' |  (_) (_' | |            snail: P.S.O.
__/                                       attn. Jeroen W. Pluimers
                                          P.O. Box 266
jeroenp@rulfc1.LeidenUniv.nl              2170 AG Sassenheim
jeroen_pluimers@f256.n281.z2.fidonet.org  The Netherlands
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads