+// ============================================================================
+// implementation
+// ============================================================================
+
+IMPLEMENT_DYNAMIC_CLASS(wxBufferedDC,wxMemoryDC)
+IMPLEMENT_ABSTRACT_CLASS(wxBufferedPaintDC,wxBufferedDC)
+
+// ----------------------------------------------------------------------------
+// wxSharedDCBufferManager: helper class maintaining backing store bitmap
+// ----------------------------------------------------------------------------
+
+class wxSharedDCBufferManager : public wxModule
+{
+public:
+ wxSharedDCBufferManager() { }
+
+ virtual bool OnInit() { return true; }
+ virtual void OnExit() { wxDELETE(ms_buffer); }
+
+ static wxBitmap* GetBuffer(int w, int h)
+ {
+ if ( ms_usingSharedBuffer )
+ return new wxBitmap(w, h);