- wxMemoryDC();
- wxMemoryDC( wxDC *dc ); // Create compatible DC
- ~wxMemoryDC();
-
- virtual void SelectObject( const wxBitmap& bitmap );
-
- void DoGetSize( int *width, int *height ) const;
-
- wxBitmap& GetBitmap() const { return (wxBitmap&) m_bitmap; }
-
+ wxMemoryDCImpl( wxDC* owner );
+ wxMemoryDCImpl( wxDC* owner, wxBitmap& bitmap);
+ wxMemoryDCImpl( wxDC* owner, wxDC *dc );
+ virtual ~wxMemoryDCImpl();
+
+ virtual const wxBitmap& GetSelectedBitmap() const;
+ virtual wxBitmap& GetSelectedBitmap();
+
+ // implementation
+ wxBitmap m_selected;
+
+protected:
+ virtual void DoGetSize( int *width, int *height ) const;
+ virtual void DoSelect(const wxBitmap& bitmap);
+
+private:
+ void Init();
+