views:

584

answers:

1

the parent and the child window is in the same size. and the the parent listens to the child's repainting when child repainting, the parent repainting. so I cannot use invalidate to clean the parent window, cos this will send wm_paint to child window, then a endless cycle.

how can i clean up parent widnow without use invalidateRect,invalidateRgn and so on. or, how can i invalidate parent without send wm_paint to child window?

thx!

+3  A: 

You could set the WS_CLIPCHILDREN style on your window, or try calling the RedrawWindow function specifying RDW_NOCHILDREN as the final parameter. This may do what you want, although it's somewhat difficult to tell.

1800 INFORMATION
thank you! it works!
lovespring