by only refreshing subwindows that are not top level windows.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19959
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxWindow *win = node->GetData();
// Only refresh sub controls when it is visible
// and when it is in the update region.
- if(win->IsShown() && wxRegion(rectWin).Contains(win->GetRect()) != wxOutRegion)
+ if(!win->IsKindOf(CLASSINFO(wxTopLevelWindow)) && win->IsShown() && wxRegion(rectWin).Contains(win->GetRect()) != wxOutRegion)
win->Refresh(eraseBackground, &rectWin);
node = node->GetNext();