- void DoGetSize( int *width, int *height ) const;
- virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const
- { return subrect == NULL ? GetSelectedBitmap() : GetSelectedBitmap().GetSubBitmap(*subrect); }
+ // overridden from wxDCImpl
+ virtual void DoGetSize( int *width, int *height ) const;
+ virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const;
+
+ // overridden for wxMemoryDC Impl
+ virtual void DoSelect(const wxBitmap& bitmap);
+
+public:
+ virtual const wxBitmap& GetSelectedBitmap() const;
+ virtual wxBitmap& GetSelectedBitmap();
+
+private:
+ wxBitmap m_selected;
+
+private:
+ void Init();