home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / mswindo / programm / misc / 1437 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  1.9 KB

  1. Xref: sparky comp.os.ms-windows.programmer.misc:1437 comp.os.ms-windows.programmer.tools:749 comp.lang.pascal:4967
  2. Path: 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
  3. From: dj@ssd.kodak.com (Dave Jones)
  4. Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools,comp.lang.pascal
  5. Subject: Re: Displaying data in an Icon
  6. Keywords: windows, icon, tpw
  7. Message-ID: <1992Aug21.191300.10474@pixel.kodak.com>
  8. Date: 21 Aug 92 19:13:00 GMT
  9. References: <1992Aug19.202034.20024@gtephx.UUCP>
  10. Sender: news@pixel.kodak.com
  11. Organization: :noitazinagrO
  12. Lines: 26
  13.  
  14. In article <1992Aug19.202034.20024@gtephx.UUCP> bakern@gtephx.UUCP (Nigel Baker) writes:
  15. >I am trying to find out how to make the icon of a minimized 
  16. >application display data.
  17. >
  18. >For example the clock program that comes with Windows 3.1 shows
  19. >the current time in it's icon when it is minimized.
  20. >Does anybody out there know how this is done ?
  21. >
  22. >I'm using TPW ver 1.5 with Whitewater Resource Toolkit.
  23. >
  24. As somebody else suggested, follow Petzold's example.  However, the
  25. really crucial thing is this: when you register your Window's class,
  26. don't give it an icon.  That way you ensure that all repaint requests
  27. will come to you via the WM_PAINT message.  Then you can test your
  28. window handle with IsIconic() to find out if you have to paint the 
  29. icon or the window.  I use this for a Mac-style trashcan.  I just
  30. use DrawIcon with the plain icon (for empty can) or a bulging icon
  31. (for a can with something in it).  Easy.
  32.  
  33.  
  34.  
  35. -- 
  36. ||)) Dump the Whatizit!  Ren and Stimpy for Olympic mascots in '96 ! )))))))|
  37. ||)) "What is it, man?!?" ))))))))))))))))))))))))))))))))))))))))))))))))))|
  38. ||))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))|
  39. ||Dave Jones (dj@ekcolor.ssd.kodak.com) | Eastman Kodak Co. Rochester, NY   |
  40.