home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / mswindo / programm / misc / 982 < prev    next >
Encoding:
Text File  |  1992-07-23  |  1.9 KB  |  43 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!think.com!cass.ma02.bull.com!catfish.az05.bull.com!tempel!pap
  3. From: pap@tempel.az05.bull.com (Pierre Perret)
  4. Subject: Re: Problems with MDI wm_EraseBkGnd
  5. Message-ID: <1992Jul23.234308.23797@catfish.az05.bull.com>
  6. Sender: news@catfish.az05.bull.com (placeholder for future)
  7. Reply-To: pap@myths.az05.bull.com
  8. Organization: Bull HN Information Systems Inc., Phoenix Product Division
  9. References:  <1992Jul22.210501.13324@rulway.LeidenUniv.nl>
  10. Date: Thu, 23 Jul 92 23:43:08 GMT
  11. Lines: 30
  12.  
  13. In article <1992Jul22.210501.13324@rulway.LeidenUniv.nl>, jeroenp@rulfc1.LeidenUniv.nl (Jeroen W. Pluimers) writes:
  14. |> I have an MDI application with MDI child windows.
  15. |> 
  16. |> When an MDI child has been maximized withing the MDI frame and I maximize
  17. |> the MDI frame the following things happen:
  18. |> 
  19. |> - Windows resizes the MDI frame
  20. |> - Windowc copies the MDI child contents to it's new position
  21. |> - Windows tells the MDI child twice to erase it's background
  22. |> - Windows tells the MDI child to repaint it's entire contents
  23. |> 
  24. |> This also happens when the maximized MDI frame is restored. It's not happening
  25. |> when the MDI child itself is being maximized or restored.
  26. |> 
  27. |> The problem with this is that the screen is updated partially 
  28. |> by windows, then erases (looks like a flicker) and then repainted
  29. |> by the application.
  30. |> 
  31. |> How can I circumvent this?
  32. |> 
  33. |> (What I really want is that windows tells me to repaint parts of the MDI
  34. |> child window and does not ask for erasure of the background).
  35.  
  36. I bet you have the styles CS_VREDRAW and CS_HREDRAW set in your
  37. MDI child's or frame window class. Try without them.
  38.  
  39. -- 
  40. - Pierre Perret -    Phone: (602) 862-5448   FAX: (602) 862-6105
  41.                   Internet: P.Perret@az05.bull.com
  42.                 Compu$erve: 73757,2337     BIX: pierre_perret
  43.