How to detect that background under child window is changed?
-
How to detect that background under child window is changed? Problem is following: I use owner-drown CStatic ( rectanule) as surround rectangle, but fill the background under it. In CDialog:: OnEraseBackground, I call that CStatic::OnEraseBackground. At first time all controls appears, but next, if I move some window around that CStatic: controls are under backgrounf - do not know that background is filled and not redraw self - so thay are hide under filling. How for child windows to know that background is changed ? I use a collection of controls that placed within filled CStatic rectangle, so I can command Invalidate(0); UpdateWindow(); for each. But this is not helps. How to renew controls when background owner-drawn change (in CStatic::OnEraseBackground ) ? Helps if I command to renew full CDialog, but it happens at too much cost of renewing all controls , not within desired rectangle, but result need as in that case. How to achieve it ? thanks you.