// Purpose: wxMetaFile, wxMetaFileDC classes.
// This probably should be restricted to Windows platforms,
// but if there is an equivalent on your platform, great.
-// Author: AUTHOR
+// Author: Stefan Csomor
// Modified by:
-// Created: ??/??/98
+// Created: 1998-01-01
// RCS-ID: $Id$
-// Copyright: (c) AUTHOR
-// Licence: wxWindows licence
+// Copyright: (c) Stefan Csomor
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
~wxMetafileRefData(void);
public:
- PicHandle m_metafile;
+ WXHMETAFILE m_metafile;
};
#define M_METAFILEDATA ((wxMetafileRefData *)m_refData)
DECLARE_DYNAMIC_CLASS(wxMetafile)
public:
// Copy constructor
- inline wxMetafile(const wxMetafile& metafile)
+ wxMetafile(const wxMetafile& metafile)
+ : wxGDIObject()
{ Ref(metafile); }
wxMetafile(const wxString& file = "");
inline bool Ok(void) const { return (M_METAFILEDATA && (M_METAFILEDATA->m_metafile != 0)); };
// Implementation
- inline PicHandle GetHMETAFILE(void) { return M_METAFILEDATA->m_metafile; }
- void SetHMETAFILE(PicHandle mf) ;
+ inline WXHMETAFILE GetHMETAFILE(void) { return M_METAFILEDATA->m_metafile; }
+ void SetHMETAFILE(WXHMETAFILE mf) ;
// Operators
inline wxMetafile& operator = (const wxMetafile& metafile) { if (*this == metafile) return (*this); Ref(metafile); return *this; }