Article View: comp.windows.ms.programmer
Article #488Re: Displaying data in an Icon
From: Dave Jones
Date: Fri, 21 Aug 1992 19:13
Date: Fri, 21 Aug 1992 19:13
26 lines
1892 bytes
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 |
Technical Details
Message-ID:
<1992Aug21.191300.10474@pixel.kodak.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!uakari.primate.wisc.edu!usenet.coe.montana.edu!ogicse!das-news.harvard.edu!spdcc!dirtydog.ima.isc.com!newsserver.pixel.kodak.com!djReferences:
<1992Aug19.202034.20024@gtephx.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!uakari.primate.wisc.edu!usenet.coe.montana.edu!ogicse!das-news.harvard.edu!spdcc!dirtydog.ima.isc.com!newsserver.pixel.kodak.com!dj From: dj@ssd.kodak.com (Dave Jones) Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools,comp.lang.pascal Subject: Re: Displaying data in an Icon Keywords: windows, icon, tpw Message-ID: <1992Aug21.191300.10474@pixel.kodak.com> Date: 21 Aug 92 19:13:00 GMT References: <1992Aug19.202034.20024@gtephx.UUCP> Sender: news@pixel.kodak.com Organization: :noitazinagrO Lines: 26