friend class WXDLLEXPORT wxMetafile;
public:
wxMetafileRefData(void);
- ~wxMetafileRefData(void);
+ virtual ~wxMetafileRefData(void);
public:
WXHMETAFILE m_metafile;
DECLARE_DYNAMIC_CLASS(wxMetafile)
public:
wxMetafile(const wxString& file = wxEmptyString);
- ~wxMetafile(void);
+ virtual ~wxMetafile(void);
// After this is called, the metafile cannot be used for anything
// since it is now owned by the clipboard.
virtual bool SetClipboard(int width = 0, int height = 0);
virtual bool Play(wxDC *dc);
- inline bool Ok(void) const { return (M_METAFILEDATA && (M_METAFILEDATA->m_metafile != 0)); };
+ inline bool Ok() const { return IsOk(); }
+ inline bool IsOk(void) const { return (M_METAFILEDATA && (M_METAFILEDATA->m_metafile != 0)); };
wxSize GetSize() const;
int GetWidth() const { return GetSize().x; }
int width = 0, int height = 0,
const wxString& description = wxEmptyString);
- ~wxMetafileDC(void);
+ virtual ~wxMetafileDC(void);
// Should be called at end of drawing
virtual wxMetafile *Close(void);