X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5942996c94a82dcbedf7b1041b08acd8d1d97449..e22cf4b310aa1cac5f21879823aa26be4c804c24:/include/wx/dfb/dcmemory.h diff --git a/include/wx/dfb/dcmemory.h b/include/wx/dfb/dcmemory.h index dbb0e955c8..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(); + 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)