wxMetaFile::~wxMetaFile(void)
{
if (m_metaFile)
- { DeleteMetaFile((HANDLE) m_metaFile); m_metaFile = 0; }
+ { DeleteMetaFile((HMETAFILE) m_metaFile); m_metaFile = 0; }
}
bool wxMetaFile::SetClipboard(int width, int height)
wxOpenClipboard();
if (!wxEmptyClipboard()) return FALSE;
}
- bool success = wxSetClipboardData(wxCF_METAFILE,this, width,height);
+ bool success = wxSetClipboardData(wxDF_METAFILE,this, width,height);
if (!alreadyOpen) wxCloseClipboard();
return (bool) success;
}
dc->BeginDrawing();
if (dc->GetHDC() && m_metaFile)
- PlayMetaFile((HDC) dc->GetHDC(), (HANDLE) m_metaFile);
+ PlayMetaFile((HDC) dc->GetHDC(), (HMETAFILE) m_metaFile);
dc->EndDrawing();