]> git.saurik.com Git - wxWidgets.git/blame - include/wx/metafile.h
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / include / wx / metafile.h
CommitLineData
d9317fd4
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/metafile.h
3// Purpose: wxMetaFile class declaration
77ffb593 4// Author: wxWidgets team
d9317fd4
VZ
5// Modified by:
6// Created: 13.01.00
77ffb593 7// Copyright: (c) wxWidgets team
65571936 8// Licence: wxWindows licence
d9317fd4
VZ
9///////////////////////////////////////////////////////////////////////////////
10
34138703
JS
11#ifndef _WX_METAFILE_H_BASE_
12#define _WX_METAFILE_H_BASE_
c801d85f 13
f2555abd
MW
14#include "wx/defs.h"
15
16#if wxUSE_METAFILE
17
d9317fd4
VZ
18// provide synonyms for all metafile classes
19#define wxMetaFile wxMetafile
20#define wxMetaFileDC wxMetafileDC
21#define wxMetaFileDataObject wxMetafileDataObject
22
23#define wxMakeMetaFilePlaceable wxMakeMetafilePlaceable
24
2049ba38 25#if defined(__WXMSW__)
3a5bcc4d 26 #if wxUSE_ENH_METAFILE
bd362275 27 #include "wx/msw/enhmeta.h"
d9317fd4 28
547ceb38
VZ
29 #if wxUSE_WIN_METAFILES_ALWAYS
30 // use normal metafiles as well
31 #include "wx/msw/metafile.h"
32 #else // also map all metafile classes to enh metafile
d9317fd4
VZ
33 typedef wxEnhMetaFile wxMetafile;
34 typedef wxEnhMetaFileDC wxMetafileDC;
547ceb38
VZ
35 #if wxUSE_DRAG_AND_DROP
36 typedef wxEnhMetaFileDataObject wxMetafileDataObject;
37 #endif
38
d9317fd4
VZ
39 // this flag will be set if wxMetafile class is wxEnhMetaFile
40 #define wxMETAFILE_IS_ENH
41 #endif // wxUSE_WIN_METAFILES_ALWAYS
3a5bcc4d 42 #else // !wxUSE_ENH_METAFILE
bd362275 43 #include "wx/msw/metafile.h"
ffecfa5a 44 #endif
d9317fd4
VZ
45#elif defined(__WXPM__)
46 #include "wx/os2/metafile.h"
a02bb143 47#elif defined(__WXMAC__)
ef0e9220 48 #include "wx/osx/metafile.h"
1777b9bb 49#endif
c801d85f 50
f2555abd 51#endif // wxUSE_METAFILE
547ceb38
VZ
52
53#endif // _WX_METAFILE_H_BASE_