home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4837 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.3 KB  |  28 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!paladin.american.edu!gatech!rpi!newsserver.pixel.kodak.com!ekcolor!dj
  3. From: dj@ekcolor.ssd.kodak.com (Dave Jones)
  4. Subject: Re: Drawing on a dialog
  5. Message-ID: <1993Jan11.163612.6273@pixel.kodak.com>
  6. Sender: news@pixel.kodak.com
  7. Organization: Morituri Te Salutent, Inc.
  8. X-Newsreader: TIN [version 1.1 PL7]
  9. References: <C0ovz8.18u@brunel.ac.uk>
  10. Date: Mon, 11 Jan 93 16:36:12 GMT
  11. Lines: 15
  12.  
  13. If memory serves, the dialog window is not visible when you get 
  14. WM_INITDIALOG.  Best way to give yourself a prod to do something unusual in 
  15. a dialog is to use the WM_INITDIALOG as a cue to arrange for another message 
  16. to be delivered later.  I've set up WM_TIMER messages myself, and there's no
  17. reason why you can't post yourself a WM_USER.  Try playing with WM_PAINT: 
  18. the dialog box will get it just like any other window does, but you'll have to
  19. be careful to coordinate with the dialog's own repaint (if it has one).
  20.  
  21. There are other strategies like placing a static control behind all the 
  22. others and just painting that.  You would probably have to subclass it
  23. and intercept WM_PAINT.
  24.  
  25. --
  26. ||------------------------------------------------------------------------
  27. ||Dave Jones (dj@ekcolor.ssd.kodak.com)|Eastman Kodak Co. Rochester, NY  |
  28.