X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/53a2db124c633f80bdb16336084262037d879a2c..438959cca892a7651634cc3a7aad4819ac49b23c:/include/wx/msw/enhmeta.h diff --git a/include/wx/msw/enhmeta.h b/include/wx/msw/enhmeta.h index e828b29358..e134750ea6 100644 --- a/include/wx/msw/enhmeta.h +++ b/include/wx/msw/enhmeta.h @@ -37,7 +37,7 @@ public: { Free(); } // display the picture stored in the metafile on the given DC - bool Play(wxDC *dc, wxRect *rectBound = (wxRect *)NULL); + bool Play(wxDC *dc, wxRect *rectBound = NULL); // accessors virtual bool IsOk() const { return m_hMF != 0; } @@ -87,6 +87,14 @@ public: int width = 0, int height = 0, const wxString& description = wxEmptyString); + // as above, but takes reference DC as first argument to take resolution, + // size, font metrics etc. from + wxEXPLICIT + wxEnhMetaFileDC(const wxDC& referenceDC, + const wxString& filename = wxEmptyString, + int width = 0, int height = 0, + const wxString& description = wxEmptyString); + // obtain a pointer to the new metafile (caller should delete it) wxEnhMetaFile *Close(); @@ -129,7 +137,7 @@ public: protected: wxEnhMetaFile m_metafile; - DECLARE_NO_COPY_CLASS(wxEnhMetaFileDataObject) + wxDECLARE_NO_COPY_CLASS(wxEnhMetaFileDataObject); }; @@ -172,7 +180,7 @@ public: protected: wxEnhMetaFile m_metafile; - DECLARE_NO_COPY_CLASS(wxEnhMetaFileSimpleDataObject) + wxDECLARE_NO_COPY_CLASS(wxEnhMetaFileSimpleDataObject); }; #endif // wxUSE_DRAG_AND_DROP