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

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. From: chris@chrism.demon.co.uk (Chris Marriott)
  3. Path: sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
  4. Subject: Re: Drawing on a dialog 
  5. Distribution: world
  6. References: <93011.164426SASTPH@vm.sas.com>
  7. Organization: None
  8. Reply-To: chris@chrism.demon.co.uk
  9. X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
  10. Lines: 22
  11. Date: Tue, 12 Jan 1993 19:33:07 +0000
  12. Message-ID: <726867187snz@chrism.demon.co.uk>
  13. Sender: usenet@demon.co.uk
  14.  
  15. In article <93011.164426SASTPH@vm.sas.com> SASTPH@vm.sas.com writes:
  16.  
  17. >You almost had it.  Put a static (WHITEFRAME) text box the size of your
  18. >bitmap on the dialog box.  Subclass it.  When your the proc for the text
  19. >box gets a WM_PAINT msg, blit the bitmap onto the static box.  Voila!
  20. >
  21. >Hope this helps!
  22. >
  23.  
  24. There's no need to subclass the control at all!  Simply respond to WM_PAINT
  25. messages received by the dialog proc, then call "ValidateRect" for the
  26. control to stop Windows from painting it white again.
  27.  
  28. Chris
  29. -- 
  30. --------------------------------------------------------------------------
  31. | Chris Marriott                           | chris@chrism.demon.co.uk    |
  32. | Warrington, UK                           | BIX: cmarriott              |
  33. | (Still awaiting inspiration              | CIX: cmarriott              |
  34. |  for a witty .sig .... )                 | CompuServe: 100113,1140     |
  35. --------------------------------------------------------------------------
  36.  
  37.