- This is a subclass of wxBufferedDC which can be used
- inside of an @c OnPaint() event handler. Just create an object of this class
- instead
- of wxPaintDC and make sure wxWindow::SetBackgroundStyle
- is called with wxBG_STYLE_CUSTOM somewhere in the class initialization code,
- and that's all
- you have to do to (mostly) avoid flicker. The only thing to watch out for is
- that if you are
- using this class together with wxScrolledWindow, you probably
- do @b not want to call wxScrolledWindow::PrepareDC on it as it
- already does this internally for the real underlying wxPaintDC.
+ This is a subclass of wxBufferedDC which can be used inside of an
+ @c EVT_PAINT() event handler to achieve double-buffered drawing. Just use
+ this class instead of wxPaintDC and make sure
+ wxWindow::SetBackgroundStyle() is called with wxBG_STYLE_CUSTOM somewhere
+ in the class initialization code, and that's all you have to do to (mostly)
+ avoid flicker. The only thing to watch out for is that if you are using
+ this class together with wxScrolled, you probably do @b not want to call
+ wxScrolled::PrepareDC() on it as it already does this internally for the
+ real underlying wxPaintDC.