+bool wxMetafile::Play(wxDC *dc)
+{
+ if (!m_refData)
+ return FALSE;
+
+ dc->BeginDrawing();
+
+ if (dc->GetHDC() && M_METAFILEDATA->m_metafile)
+ PlayMetaFile((HDC) dc->GetHDC(), (HMETAFILE) M_METAFILEDATA->m_metafile);
+
+ dc->EndDrawing();
+
+ return TRUE;
+}
+
+void wxMetafile::SetHMETAFILE(WXHANDLE mf)
+{
+ if (m_refData)
+ m_refData = new wxMetafileRefData;
+
+ M_METAFILEDATA->m_metafile = mf;
+}
+
+void wxMetafile::SetWindowsMappingMode(int mm)
+{
+ if (m_refData)
+ m_refData = new wxMetafileRefData;
+
+ M_METAFILEDATA->m_windowsMappingMode = mm;