Search found 1 match
- Sun Sep 11, 2005 2:50 am
- Forum: C++ Development
- Topic: Double buffering/wxScrolledWindow problem
- Replies: 6
- Views: 2765
I had the same problem, and this is how you fix it.
void objectmap::OnPaint( wxPaintEvent &event ) { wxBufferedPaintDC dc(this); //get the current visible area (is this the easiest way!?!?) wxSize clientsize = GetClientSize(); int xbegin, ybegin; GetViewStart(&xbegin, &ybegin); int xunit, yunit; GetScrollPixelsPerUnit(&xunit, &yun...