X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/024026be1dddaa0acf1360dc9a3847fd671de7a0..9ed8b5a7b2e41ecb07d2dab32bac32eb7b771fd3:/include/wx/msw/enhmeta.h?ds=sidebyside diff --git a/include/wx/msw/enhmeta.h b/include/wx/msw/enhmeta.h index 4fa8d1c8d0..fa5389b1d0 100644 --- a/include/wx/msw/enhmeta.h +++ b/include/wx/msw/enhmeta.h @@ -39,7 +39,8 @@ public: bool Play(wxDC *dc, wxRect *rectBound = (wxRect *)NULL); // accessors - bool Ok() const { return m_hMF != 0; } + bool Ok() const { return IsOk(); } + bool IsOk() const { return m_hMF != 0; } wxSize GetSize() const; int GetWidth() const { return GetSize().x; } @@ -86,9 +87,10 @@ public: // obtain a pointer to the new metafile (caller should delete it) wxEnhMetaFile *Close(); -private: +protected: virtual void DoGetSize(int *width, int *height) const; +private: // size passed to ctor and returned by DoGetSize() int m_width, m_height;