#if wxUSE_METAFILE
#ifndef WX_PRECOMP
-#include "wx/utils.h"
-#include "wx/app.h"
+ #include "wx/utils.h"
+ #include "wx/app.h"
#endif
#include "wx/metafile.h"
if (!alreadyOpen)
{
wxOpenClipboard();
- if (!wxEmptyClipboard()) return FALSE;
+ if (!wxEmptyClipboard()) return false;
}
bool success = wxSetClipboardData(wxDF_METAFILE, this, width,height);
if (!alreadyOpen) wxCloseClipboard();
bool wxMetafile::Play(wxDC *dc)
{
if (!m_refData)
- return FALSE;
-
- dc->BeginDrawing();
+ return false;
// if (dc->GetHDC() && M_METAFILEDATA->m_metafile)
// PlayMetaFile((HDC) dc->GetHDC(), (HMETAFILE) M_METAFILEDATA->m_metafile);
- dc->EndDrawing();
-
return true;
}
FILE *fd = fopen(filename.fn_str(), "rb");
if (!fd)
- return FALSE;
+ return false;
wxChar tempFileBuf[256];
wxGetTempFileName(wxT("mf"), tempFileBuf);
FILE *fHandle = fopen(wxConvFile.cWX2MB(tempFileBuf), "wb");
if (!fHandle)
- return FALSE;
+ return false;
fwrite((void *)&header, sizeof(unsigned char), sizeof(mfPLACEABLEHEADER), fHandle);
// Calculate origin and extent