X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/432efcb004c8a7f4997acab1aa044c78226c36bb..0441868f0826077c1412a9828e5f3e67f32c425d:/include/wx/dfb/dcmemory.h diff --git a/include/wx/dfb/dcmemory.h b/include/wx/dfb/dcmemory.h index 86ce650a72..d5b1a72d9b 100644 --- a/include/wx/dfb/dcmemory.h +++ b/include/wx/dfb/dcmemory.h @@ -14,19 +14,23 @@ #include "wx/dc.h" #include "wx/bitmap.h" -class WXDLLIMPEXP_CORE wxMemoryDC : public wxDC +class WXDLLIMPEXP_CORE wxMemoryDC : public wxDC, public wxMemoryDCBase { public: - wxMemoryDC( const wxBitmap& bitmap = wxNullBitmap ); + wxMemoryDC() { Init(); } + wxMemoryDC(wxBitmap& bitmap) { Init(); SelectObject(bitmap); } wxMemoryDC(wxDC *dc); // create compatible DC - virtual void SelectObject(const wxBitmap& bitmap); - // implementation from now on: wxBitmap GetSelectedObject() const { return m_bmp; } +protected: + virtual void DoSelect(const wxBitmap& bitmap); + private: + void Init(); + wxBitmap m_bmp; DECLARE_DYNAMIC_CLASS(wxMemoryDC)