Include wx/app.h according to precompiled headers of wx/wx.h (with other minor cleaning).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-04-28 12:44:37 +00:00
parent 6f26f98eb5
commit 670f993563
157 changed files with 842 additions and 662 deletions

View File

@@ -15,8 +15,8 @@
#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"
@@ -80,7 +80,7 @@ bool wxMetafile::SetClipboard(int width, int height)
if (!alreadyOpen)
{
wxOpenClipboard();
if (!wxEmptyClipboard()) return FALSE;
if (!wxEmptyClipboard()) return false;
}
bool success = wxSetClipboardData(wxDF_METAFILE, this, width,height);
if (!alreadyOpen) wxCloseClipboard();
@@ -91,7 +91,7 @@ bool wxMetafile::SetClipboard(int width, int height)
bool wxMetafile::Play(wxDC *dc)
{
if (!m_refData)
return FALSE;
return false;
// if (dc->GetHDC() && M_METAFILEDATA->m_metafile)
// PlayMetaFile((HDC) dc->GetHDC(), (HMETAFILE) M_METAFILEDATA->m_metafile);
@@ -354,13 +354,13 @@ bool wxMakeMetafilePlaceable(const wxString& WXUNUSED(filename),
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