home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / mswindo / programm / misc / 1542 < prev    next >
Encoding:
Text File  |  1992-08-27  |  1.6 KB  |  32 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc,comp.os-.ms-windows.programmer.tools
  2. Path: sparky!uunet!decwrl!access.usask.ca!regina!hercules.cs.uregina.ca!plummer
  3. From: plummer@hercules.cs.uregina.ca (Dave Plummer)
  4. Subject: HELP! Drawing in a Dialog Box...
  5. Message-ID: <1992Aug28.011020.5381@regina.cs.uregina.ca>
  6. Originator: plummer@hercules.cs.uregina.ca
  7. Sender: news@regina.cs.uregina.ca
  8. Reply-To: plummer@hercules.cs.uregina.ca (Dave Plummer)
  9. Organization: University of Regina, Regina, Saskatchewan
  10. Date: Fri, 28 Aug 1992 01:10:20 GMT
  11. Lines: 19
  12.  
  13. Here's the situation:  Using ObjectWindows under TCC+/Win, I have a main
  14. windows derived from TDialog.  I have a bitmap that I need to refresh
  15. when it the window gets repainted, but it is on top of a Borland shadow
  16. box custom control.  I've tried hooking into a couple of control color
  17. messages, but no matter what I try, it always seems that the dialog itself
  18. gets refreshed overtop of whatever I draw, although I can see it being
  19. redrawn first.  How do I do the final rendering of my window after windows
  20. (or bwcc.dll) is done drawing all of the button and backgrounds?  If you've
  21. been through this (or just happen to know the answer), please email me!
  22.  
  23. Secondly, one of the original problems I was having was that the HWindow
  24. field of my derived class is not valid in my constructor.  I got around it
  25. by setting a global variable in my InitMainWindow(), but this is obviously
  26. not the best practice.  What and where is the soonest I can get my HWindow
  27. for the dialog/window I have created?
  28.  
  29. Thanks,
  30. Dave "Paitiently waiting for Petzold Ed 3" Plummer
  31.  
  32.