- if ( !m_doubleBuffer ||
- clientSize.x > m_doubleBuffer->GetWidth() ||
- clientSize.y > m_doubleBuffer->GetHeight() )
- {
- delete m_doubleBuffer;
- m_doubleBuffer = new wxBitmap(clientSize.x+25,clientSize.y+25);
- }
-
- wxBufferedPaintDC dc(this,*m_doubleBuffer);