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

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!newsflash.concordia.ca!mizar.cc.umanitoba.ca!umwaletz
  3. From: umwaletz@ccu.umanitoba.ca (James L. Waletzky)
  4. Subject: Forced Update (WM_PAINT) of Window
  5. Message-ID: <C0Fx4F.6Cs@ccu.umanitoba.ca>
  6. Sender: news@ccu.umanitoba.ca
  7. Nntp-Posting-Host: vader.cc.umanitoba.ca
  8. Organization: University of Manitoba, Winnipeg, Canada
  9. Date: Wed, 6 Jan 1993 16:14:36 GMT
  10. Lines: 16
  11.  
  12. I'm using Borland C++ 3.1 to create my app and here's the problem:
  13.  
  14. I have this main window which contains about 20 children, with each
  15. child being a box containing a particular color. Up pops a dialog
  16. asking the user to respond to some questions and once this dialog
  17. disappears, I would like to update all of the children with their
  18. new colors (ie. force a WM_PAINT message).
  19.  
  20. I thought all I had to do was Invalidate the parent window and call
  21. UpdateWindow, but this doesn't seem to work. I then tried Invalidating
  22. all of the children and calling UpdateWindow, but this didn't work
  23. either. Any ideas?
  24.  
  25. James.
  26. umwaletz@ccu.umanitoba.ca
  27.  
  28.