- 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 @c Init()
- must not be called after using them.
-
- @param dc
- The underlying DC: everything drawn to this object will be
- flushed to this DC when this object is destroyed. You may pass @NULL
- in order to just initialize the buffer, and not flush it.
-
- @param area
- The size of the bitmap to be used for buffering (this bitmap is
- created internally when it is not given explicitly).
-
- @param buffer
- Explicitly provided bitmap to be used for buffering: this is
- the most efficient solution as the bitmap doesn't have to be recreated each
- time but it also requires more memory as the bitmap is never freed. The bitmap
- should have appropriate size, anything drawn outside of its bounds is clipped.
-
- @param style
- wxBUFFER_CLIENT_AREA to indicate that just the client area of
- the window is buffered, or wxBUFFER_VIRTUAL_AREA to indicate that the buffer
- bitmap
- covers the virtual area (in which case PrepareDC is automatically called for
- the actual window
- device context).