if ( !wxWindow::Create(parent, id, pos, size, style, name) )
return false;
if ( !wxWindow::Create(parent, id, pos, size, style, name) )
return false;
m_permitUnsplitAlways = (style & wxSP_PERMIT_UNSPLIT) != 0;
// FIXME: with this line the background is not erased at all under GTK1,
m_permitUnsplitAlways = (style & wxSP_PERMIT_UNSPLIT) != 0;
// FIXME: with this line the background is not erased at all under GTK1,
GetWindow2()->SetSize(x2, y2, w2, h2);
GetWindow2()->SetSize(x2, y2, w2, h2);
wxASSERT_MSG( (!window || (window && window->GetParent() == this)),
_T("windows in the splitter should have it as parent!") );
wxASSERT_MSG( (!window || (window && window->GetParent() == this)),
_T("windows in the splitter should have it as parent!") );