]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/setup.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Configuration for the library
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
20 #define wxUSE_CONFIG 1
21 // Use wxConfig, with CreateConfig in wxApp
22 #define _WX_GOODCOMPILER__
23 // gcc can have problems, but Windows compilers
25 #define WXWIN_COMPATIBILITY 0
26 // Compatibility with 1.68 API.
27 // Level 0: no backward compatibility, all new features
28 // Level 1: Some compatibility. In fact
29 // the compatibility code is now very minimal so there
30 // is little advantage to setting it to 1.
32 #define wxUSE_AUTOTRANS 1
34 #define wxUSE_POSTSCRIPT 0
35 // 0 for no PostScript device context
36 #define wxUSE_AFM_FOR_POSTSCRIPT 0
37 // 1 to use font metric files in GetTextExtent
38 #define wxUSE_METAFILE 1
39 // 0 for no Metafile and metafile device context
43 // 0 for no interprocess comms
44 // Note: wxHELP uses IPC under X so these are interdependent!
46 // 0 for no help facility
47 #define wxUSE_RESOURCES 1
48 // 0 for no wxGetResource/wxWriteResource
49 #define wxUSE_CONSTRAINTS 1
50 // 0 for no window layout constraint system
52 #define wxUSE_TIMEDATE 1
53 // 0 for no wxTime/wxDate classes
55 #define wxUSE_CLIPBOARD 1
56 // 0 for no clipboard functions
57 #define wxUSE_SPLINES 1
59 #define wxUSE_XFIG_SPLINE_CODE 1
60 // 1 for XFIG spline code, 0 for AIAI spline code.
61 // AIAI spline code is slower, but freer of copyright issues.
63 #define wxUSE_DRAG_AND_DROP 1
64 // 0 for no drag and drop
66 #define wxUSE_TOOLBAR 1
67 // Define 1 to use toolbar classes
68 #define wxUSE_BUTTONBAR 1
69 // Define 1 to use buttonbar classes (enhanced toolbar
72 // Define 1 to use Microsoft's gauge (Windows)
73 // or Bull's gauge (Motif) library (both in contrib).
74 #define wxUSE_COMBOBOX 1
75 // Define 1 to use COMBOXBOX control (Windows)
76 // or FWW's ComboBox widget (Motif).
77 #define wxUSE_RADIOBUTTON 1
78 // Define 1 to use radio button control
80 #define wxUSE_SCROLLBAR 1
81 // Define 1 to compile contributed wxScrollBar class
82 #define wxUSE_XPM_IN_MSW 1
83 // Define 1 to support the XPM package in wxBitmap.
84 #define wxUSE_IMAGE_LOADING_IN_MSW 1
85 // Use dynamic DIB loading/saving code in utils/dib under MSW.
86 #define wxUSE_RESOURCE_LOADING_IN_MSW 1
87 // Use dynamic icon/cursor loading/saving code
89 #define wxUSE_WX_RESOURCES 1
90 // Use .wxr resource mechanism (requires PrologIO library)
92 // BC++/Win16 can't cope with the amount of data in resource.cpp
93 #if defined(__WIN16__) && defined(__BORLANDC__)
94 #undef wxUSE_WX_RESOURCES
95 #define wxUSE_WX_RESOURCES 0
100 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
101 // Set to 0 to disable document/view architecture
102 #define wxUSE_PRINTING_ARCHITECTURE 1
103 // Set to 0 to disable print/preview architecture code
104 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
105 // Set to 0 to disable PostScript print/preview architecture code
106 // under Windows (just use Windows printing).
107 #define wxUSE_DYNAMIC_CLASSES 1
108 // If 1, enables provision of run-time type information.
109 // NOW MANDATORY: don't change.
110 #define wxUSE_MEMORY_TRACING 1
111 // If 1, enables debugging versions of wxObject::new and
112 // wxObject::delete *IF* __WXDEBUG__ is also defined.
113 // WARNING: this code may not work with all architectures, especially
114 // if alignment is an issue.
115 #define wxUSE_DEBUG_CONTEXT 1
116 // If 1, enables wxDebugContext, for
117 // writing error messages to file, etc.
118 // If __WXDEBUG__ is not defined, will still use
119 // normal memory operators.
120 // It's recommended to set this to 1,
121 // since you may well need to output
122 // an error log in a production
123 // version (or non-debugging beta)
124 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
125 // In debug mode, cause new and delete to be redefined globally.
126 // If this causes problems (e.g. link errors), set this to 0.
128 #define wxUSE_DEBUG_NEW_ALWAYS 1
129 // In debug mode, causes new to be defined to
130 // be WXDEBUG_NEW (see object.h).
131 // If this causes problems (e.g. link errors), set this to 0.
132 // You may need to set this to 0 if using templates (at least
135 #define REMOVE_UNUSED_ARG 1
136 // Set this to 0 if your compiler can't cope
137 // with omission of prototype parameters.
140 // Define 1 to use ODBC classes
143 #define wxUSE_IOSTREAMH 1
145 #define wxUSE_IOSTREAMH 0
147 // VC++ 4.2 and above allows <iostream> and <iostream.h>
148 // but you can't mix them. Set to 1 for <iostream.h>,
151 #define wxUSE_WXCONFIG 1
152 // if enabled, compiles built-in OS independent wxConfig
153 // class and it's file (any platform) and registry (Win)
154 // based implementations
155 #define wxUSE_THREADS 1
156 // support for multithreaded applications: if
157 // 1, compile in thread classes (thread.h)
158 // and make the library thread safe
160 // Use zlib for compression in streams and PNG code
161 #define wxUSE_LIBPNG 1
162 // Use PNG bitmap code
163 #define wxUSE_STD_IOSTREAM 1
164 // Use standard C++ streams if 1. If 0, use wxWin
165 // streams implementation.
172 #define wxUSE_APPLE_IEEE 1
173 // if enabled, the float codec written by Apple
174 // will be used to write, in a portable way,
178 * MS Windows/Windows NT
182 #if defined(__WIN95__)
186 // Define 1 to use Microsoft CTL3D library.
187 // See note above about using FAFA and CTL3D.
190 #define wxUSE_COMMON_DIALOGS 1
191 // On rare occasions (e.g. using DJGPP) may want
192 // to omit common dialogs
193 // (e.g. file selector, printer dialog).
194 // Switching this off also switches off
195 // the printing architecture and interactive
197 #define wxUSE_ITSY_BITSY 1
198 // Define 1 to use Microsoft's ItsyBitsy
199 // small title bar library, for wxMiniFrame
200 #define wxUSE_BITMAP_MESSAGE 1
201 // Define 1 to use bitmap messages.
202 #define wxUSE_PORTABLE_FONTS_IN_MSW 0
203 // Define 1 to use new portable font scheme in Windows
204 // (used by default under X)
205 #define FONT_SIZE_COMPATIBILITY 0
206 // Define 1 for font size to be backward compatible
207 // to 1.63 and earlier. 1.64 and later define point
208 // sizes to be compatible with Windows.
209 #define wxUSE_GENERIC_DIALOGS_IN_MSW 1
210 // Define 1 to use generic dialogs in Windows, even though
211 // they duplicate native common dialog (e.g. wxColourDialog)
212 #define wxUSE_PENWINDOWS 0
213 // Set to 1 to use PenWindows
215 #define wxUSE_OWNER_DRAWN 1
216 // Owner-drawn menus and listboxes
218 #define wxUSE_NATIVE_STATUSBAR 1
219 // Set to 0 to use cross-platform wxStatusBar
220 #define wxUSE_DBWIN32 1
221 // Use Andrew Tucker's OutputDebugString implementation
222 // (required on Win95 only). See utils.cpp.
229 #define wxUSE_TYPEDEFS 0
230 // Use typedefs not classes for wxPoint
231 // and others, to reduce overhead and avoid
232 // MS C7 memory bug. Bounds checker
233 // complains about deallocating
234 // arrays of wxPoints if wxPoint is a class.
236 #if (!defined(WIN32) && !defined(__WIN32__)) || defined(__GNUWIN32__) || defined(__BORLANDC__)
237 // Can't use OLE drag and drop in Windows 3.1 because we don't know how
238 // to implement UUIDs
239 // GnuWin32 doesn't have appropriate headers for e.g. IUnknown.
240 #undef wxUSE_DRAG_AND_DROP
241 #define wxUSE_DRAG_AND_DROP 0
244 // Only WIN32 supports wxStatusBar95
245 #if !defined(__WIN32__) && wxUSE_NATIVE_STATUSBAR
246 #undef wxUSE_NATIVE_STATUSBAR
247 #define wxUSE_NATIVE_STATUSBAR 0
250 // Salford C++ doesn't like some of the memory operator definitions
252 #undef wxUSE_MEMORY_TRACING
253 #define wxUSE_MEMORY_TRACING 0
255 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
256 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
258 #undef wxUSE_DEBUG_NEW_ALWAYS
259 #define wxUSE_DEBUG_NEW_ALWAYS 0
262 #define wxUSE_THREADS 0
265 #define wxUSE_DBWIN32 0
267 #undef wxUSE_OWNER_DRAWN
268 #define wxUSE_OWNER_DRAWN 0
274 #define wxUSE_THREADS 0
277 #define wxUSE_DBWIN32 0
284 // Minimal setup e.g. for compiling small utilities
285 #define MINIMAL_WXWINDOWS_SETUP 0
287 #if MINIMAL_WXWINDOWS_SETUP
288 #undef wxUSE_POSTSCRIPT
289 # define wxUSE_POSTSCRIPT 0
290 #undef wxUSE_PRINTING_ARCHITECTURE
291 # define wxUSE_PRINTING_ARCHITECTURE 0
292 #undef wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
293 # define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 0
294 #undef wxUSE_METAFILE
295 # define wxUSE_METAFILE 0
297 # define wxUSE_FORM 0
299 # define wxUSE_SPLINES 0
300 #undef wxUSE_SCROLLBAR
301 # define wxUSE_SCROLLBAR 0
302 #undef wxUSE_COMBOBOX
303 # define wxUSE_COMBOBOX 0
304 #undef wxUSE_RADIOBUTTON
305 # define wxUSE_RADIOBUTTON 0
306 #undef wxUSE_XPM_IN_MSW
307 # define wxUSE_XPM_IN_MSW 0
308 #undef wxUSE_WX_RESOURCES
309 # define wxUSE_WX_RESOURCES 0
310 #undef wxUSE_DOC_VIEW_ARCHITECTURE
311 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
312 #undef wxUSE_GNU_WXSTRING
313 # define wxUSE_GNU_WXSTRING 0
315 # define wxUSE_ODBC 0
316 #undef wxUSE_TIMEDATE
317 # define wxUSE_TIMEDATE 0
320 #undef wxUSE_ITSY_BITSY
321 # define wxUSE_ITSY_BITSY 0
322 #undef wxUSE_IMAGE_LOADING_IN_MSW
323 # define wxUSE_IMAGE_LOADING_IN_MSW 0
325 # define wxUSE_GAUGE 0
326 #undef wxUSE_RESOURCE_LOADING_IN_MSW
327 # define wxUSE_RESOURCE_LOADING_IN_MSW 0
328 #undef wxUSE_DRAG_AND_DROP
329 # define wxUSE_DRAG_AND_DROP 0