git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43229
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxAuiMDIClientWindow* pClientWindow = parent->GetClientWindow();
wxASSERT_MSG((pClientWindow != (wxWindow*) NULL), wxT("Missing MDI client window."));
wxAuiMDIClientWindow* pClientWindow = parent->GetClientWindow();
wxASSERT_MSG((pClientWindow != (wxWindow*) NULL), wxT("Missing MDI client window."));
- wxPanel::Create(pClientWindow, id, wxDefaultPosition, size, style|wxNO_BORDER, name);
+ wxSize cli_size = pClientWindow->GetClientSize();
+
+ // create the window off-screen to prevent flicker
+ wxPanel::Create(pClientWindow,
+ id,
+ wxPoint(cli_size.x+1, cli_size.y+1),
+ size,
+ style|wxNO_BORDER, name);
SetMDIParentFrame(parent);
SetMDIParentFrame(parent);