X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..68a9527d5185cdd9d3fef3d9421415c50de8794d:/include/wx/palmos/dcmemory.h diff --git a/include/wx/palmos/dcmemory.h b/include/wx/palmos/dcmemory.h index be87436f96..580ea68bbc 100644 --- a/include/wx/palmos/dcmemory.h +++ b/include/wx/palmos/dcmemory.h @@ -14,18 +14,18 @@ #include "wx/dcclient.h" -class WXDLLEXPORT wxMemoryDC : public wxDC +class WXDLLEXPORT 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); - protected: // override some base class virtuals virtual void DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height); virtual void DoGetSize(int* width, int* height) const; + virtual void DoSelect(const wxBitmap& bitmap); // create DC compatible with the given one or screen if dc == NULL bool CreateCompatible(wxDC *dc);