Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Displaying data in an Icon

0 views
Skip to first unread message

Nigel Baker

unread,
Aug 19, 1992, 4:20:34 PM8/19/92
to
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!bak...@enuucp.eas.asu.edu

Dave Jones

unread,
Aug 21, 1992, 3:13:00 PM8/21/92
to
In article <1992Aug19.2...@gtephx.UUCP> bak...@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 (d...@ekcolor.ssd.kodak.com) | Eastman Kodak Co. Rochester, NY |

Jeroen W. Pluimers

unread,
Aug 21, 1992, 5:30:52 PM8/21/92
to
In article <1992Aug19.2...@gtephx.UUCP> bak...@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
jer...@rulfc1.LeidenUniv.nl 2170 AG Sassenheim
jeroen_...@f256.n281.z2.fidonet.org The Netherlands

Chris Hooven

unread,
Aug 26, 1992, 11:56:09 AM8/26/92
to
Hi

On Compuserve in the BORLAND forum theres a file called tpwmis.zip. Make
sure you get the one with the FRAMES unit that is the file that will let
you TextOut() to the icon.

___________________________________ _________________________________________
| Christopher L. Hooven | e-mail: hoo...@hplvec.lvld.hp.com |
| Hewlett Packard | Compuserve: 71051,2204 |
| 815 SW 14th St. AU118 | Phone: (303)679-2940 |
| Loveland Co. 80537-6330 | Fax: (303)679-5969 |
|___________________________________|_________________________________________|

0 new messages