Help removing slight switch flicker
I have this windowed DirectX program with a tab-control being a child to the "main" window. Each "page" has a child window where the rendering takes place (using swap chains). When the tab changes I hide the currently visible child window then show the newly selected child window.
Now, generally everything works fairly ok except when selecting a new tab there is sometimes a slight flicker appearing the instant it changes.
I guess this is caused by some of the controls being rendered (tabview or child window, the main window has no background brush), but validating their areas (ValidateRect) after showing/hiding still causes flickers. Any ideas what might cause it and how to prevent it?