Re: Win32Lib:repaint screen on move 2nd window
- Posted by David Cuny <dcuny at LANSET.COM> Sep 04, 2000
- 460 views
Jason Mirwald wrote: > I searched the copy of Win32Lib that I have, and it > does not call ValidateRect anywhere that I could find. > If onPaint is meant as a routine that is run when a > window recieves the WM_PAINT message, then > ValidateRect MUST be called before the routine > returns control to "windows", or "windows" will > erase the area again. My impression was that this happened automatically when BeginPaint was called. From the Win32 API help file, under ValidateRect: "The BeginPaint function automatically validates the entire client area. Neither the ValidateRect nor ValidateRgn function should be called if a portion of the update region must be validated before the next WM_PAINT message is generated." Of course, I could be entirely misunderstading this. -- David Cuny