gFrame = new MyFrame( NULL, myframe_window_title, position, new_frame_size, app_style ); gSizer1 = new wxGridSizer(0, 2, 0, 0); wxPanel *m_Page1 = new wxPanel(gFrame, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL); gSizer1->Add(m_Page1, 1, wxEXPAND , 5); wxPanel *m_panel2 = new wxPanel(gFrame, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL); gSizer1->Add(m_panel2, 1, wxEXPAND , 5); gFrame->SetSizer(gSizer1); gFrame->Layout(); When increasing the size of the parent window, the child elements do not change their own, but only "smeared" as in the screenshot. 
EVT_SIZE- this should do the correct redrawing of the window when resizing (and without the handler implementation there will be just such an effect as figure); 2) usually, when using wxSmith sizers (editor of windows from Code :: Blocks), after assigning the main window saser adds two more calls:gSizer1->Fit(this); gSizer1->SetSizeHints(this);gSizer1->Fit(this); gSizer1->SetSizeHints(this);- Vladimir