home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- 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
- From: pap@tempel.az05.bull.com (Pierre Perret)
- Subject: Re: Problems with MDI wm_EraseBkGnd
- Message-ID: <1992Jul23.234308.23797@catfish.az05.bull.com>
- Sender: news@catfish.az05.bull.com (placeholder for future)
- Reply-To: pap@myths.az05.bull.com
- Organization: Bull HN Information Systems Inc., Phoenix Product Division
- References: <1992Jul22.210501.13324@rulway.LeidenUniv.nl>
- Date: Thu, 23 Jul 92 23:43:08 GMT
- Lines: 30
-
- In article <1992Jul22.210501.13324@rulway.LeidenUniv.nl>, jeroenp@rulfc1.LeidenUniv.nl (Jeroen W. Pluimers) writes:
- |> I have an MDI application with MDI child windows.
- |>
- |> When an MDI child has been maximized withing the MDI frame and I maximize
- |> the MDI frame the following things happen:
- |>
- |> - Windows resizes the MDI frame
- |> - Windowc copies the MDI child contents to it's new position
- |> - Windows tells the MDI child twice to erase it's background
- |> - Windows tells the MDI child to repaint it's entire contents
- |>
- |> This also happens when the maximized MDI frame is restored. It's not happening
- |> when the MDI child itself is being maximized or restored.
- |>
- |> The problem with this is that the screen is updated partially
- |> by windows, then erases (looks like a flicker) and then repainted
- |> by the application.
- |>
- |> How can I circumvent this?
- |>
- |> (What I really want is that windows tells me to repaint parts of the MDI
- |> child window and does not ask for erasure of the background).
-
- I bet you have the styles CS_VREDRAW and CS_HREDRAW set in your
- MDI child's or frame window class. Try without them.
-
- --
- - Pierre Perret - Phone: (602) 862-5448 FAX: (602) 862-6105
- Internet: P.Perret@az05.bull.com
- Compu$erve: 73757,2337 BIX: pierre_perret
-