.\" This is a wxWidgets manpage page generated from the XML docs .TH wxBufferedDC 3wx 2005-02-15 "wxWidgets" "wxWidgets class documentation" .SH NAME wxBufferedDC \- A helper device context for double buffered drawing. .SH DESCRIPTION This simple class provides a simple way to avoid flicker: when drawing on it, everything is in fact first drawn on an in-memory buffer (a wxBitmap ) and then copied to the screen only once, when this object is destroyed. It can be used in the same way as any other device context. wxBufferedDC itself typically replaces wxClientDC , if you want to use it in your OnPaint() handler, you should look at wxBufferedPaintDC . .SH "PARENTS" wxMemoryDC wxDC wxObject .SH "INCLUDE FILES" wx/dcbuffer.h .SH MEMBERS .SS wxBufferedDC () .SS wxBufferedDC (wxDC *dcconst wxSize& areaint style = wxBUFFER_CLIENT_AREA) .SS wxBufferedDC (wxDC *dcconst wxBitmap& bufferint style = wxBUFFER_CLIENT_AREA) If you use the first, default, constructor, you must call one of the Init methods later in order to use the object. The other constructors initialize the object immediately and Init() must not be called after using them. .SS void Init (wxDC *dcconst wxSize& areaint style = wxBUFFER_CLIENT_AREA) .SS void Init (wxDC *dcconst wxBitmap& bufferint style = wxBUFFER_CLIENT_AREA) These functions initialize the object created using the default constructor. Please see constructors documentation for details. .SH "SEE ALSO" wxMemoryDC wxDC wxObject wxDC .SH "AUTHORS" Documentation content by Julian Smart, Robert Roebling, Vadim Zeitlin, Robin Dunn, et al Conversion to manpage format by Arnout Engelen (http://bzzt.net), bugreports welcome.