X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/432efcb004c8a7f4997acab1aa044c78226c36bb..459f812badc752b14c96ea294442c50390ee5030:/include/wx/palmos/dcmemory.h diff --git a/include/wx/palmos/dcmemory.h b/include/wx/palmos/dcmemory.h index 56d6c305f4..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( const wxBitmap& bitmap = wxNullBitmap ); + 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);