I have a notebook inside a splitter made with
Code: Select all
m_splitter = new wxSplitterWindow(this);
m_splitter->SetSashInvisible(false);
wxNotebook* notebook = new wxNotebook(m_splitter, wxID_ANY, wxDefaultPosition, wxDefaultSize,
wxNB_MULTILINE);
PanelCurrent* panel_current = new PanelCurrent(m_splitter);
panel_current->SetMinSize(wxSize(1250, -1));
m_splitter->SplitVertically(panel_current, notebook);
when I resize it I have an assertion here ( h == 0)
Code: Select all
bool wxBitmap::DoCreate(int w, int h, int d, WXHDC hdc)
{
UnRef();
wxCHECK_MSG( w > 0 && h > 0, false, wxT("invalid bitmap size") );
called by
Code: Select all
void wxNotebook::OnPaint(wxPaintEvent& WXUNUSED(event))
{
wxPaintDC dc(this);
wxMemoryDC memdc;
RECT rc;
::GetClientRect(GetHwnd(), &rc);
wxBitmap bmp(rc.right, rc.bottom);
I can provide more debugging results if needed
basically, this call
Code: Select all
::GetClientRect(GetHwnd(), &rc);
wxBitmap bmp(rc.right, rc.bottom);