]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/setup0.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/setup.h
3 // Purpose: Configuration for the library
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 // define this to 0 when building wxBase library
22 // ----------------------------------------------------------------------------
23 // compatibility settings
24 // ----------------------------------------------------------------------------
26 // This setting determines the compatibility with 1.68 API:
27 // Level 0: no backward compatibility, all new features
28 // Level 1: some extra methods are defined for compatibility.
32 // Recommended setting: 0 (in fact the compatibility code is now very minimal
33 // so there is little advantage to setting it to 1.
34 #define WXWIN_COMPATIBILITY 0
36 // in wxMSW version 2.1.11 and earlier, wxIcon always derives from wxBitmap,
37 // but this is very dangerous because you can mistakenly pass an icon instead
38 // of a bitmap to a function taking "const wxBitmap&" - which will *not* work
39 // because an icon is not a valid bitmap
41 // Starting from 2.1.12, you have the choice under this backwards compatible
42 // behaviour (your code will still compile, but probably won't behave as
43 // expected!) and not deriving wxIcon class from wxBitmap, but providing a
44 // conversion ctor wxBitmap(const wxIcon&) instead.
46 // Recommended setting: 0
47 #define wxICON_IS_BITMAP 0
49 // ----------------------------------------------------------------------------
50 // non GUI features selection
51 // ----------------------------------------------------------------------------
53 // Set wxUSE_LONGLONG to 1 to compile the wxLongLong class. This is a 64 bit
54 // integer which is implemented in terms of native 64 bit integers if any or
55 // uses emulation otherwise.
57 // This class is required by wxDateTime and so you should enable it if you want
58 // to use wxDateTime. For most modern platforms, it will use the native 64 bit
59 // integers in which case (almost) all of its functions are inline and it
60 // almost does not take any space, so there should be no reason to switch it
63 // Recommended setting: 1
64 #define wxUSE_LONGLONG 1
66 // Set wxUSE_TIMEDATE to 1 to compile the wxDateTime and related classes which
67 // allow to manipulate dates, times and time intervals. wxDateTime replaces the
68 // old wxTime and wxDate classes which are still provided for backwards
69 // compatibility (and implemented in terms of wxDateTime).
71 // Note that this class is relatively new and is still officially in alpha
72 // stage because some features are not yet (fully) implemented. It is already
73 // quite useful though and should only be disabled if you are aiming at
74 // absolutely minimal version of the library.
76 // Requires: wxUSE_LONGLONG
78 // Recommended setting: 1
79 #define wxUSE_TIMEDATE 1
81 // Setting wxUSE_CONFIG to 1 enables the use of wxConfig and related classes
82 // which allow the application to store its settings in the persistent
83 // storage. Setting this to 1 will also enable on-demand creation of the
84 // global config object in wxApp.
86 // See also wxUSE_CONFIG_NATIVE below.
88 // Recommended setting: 1
89 #define wxUSE_CONFIG 1
91 // If wxUSE_CONFIG is 1, you may choose to use either the native config
92 // classes under Windows (using .INI files under Win16 and the registry under
93 // Win32) or the portable text file format used by the config classes under
96 // Default is 1 to use native classes. Note that you may still use
97 // wxFileConfig even if you set this to 1 - just the config object created by
98 // default for the applications needs will be a wxRegConfig or wxIniConfig and
101 // Recommended setting: 1
102 #define wxUSE_CONFIG_NATIVE 1
104 // If wxUSE_DIALUP_MANAGER is 1, compile in wxDialUpManager class which allows
105 // to connect/disconnect from the network and be notified whenever the dial-up
106 // network connection is established/terminated.
110 // Recommended setting: 1
111 #define wxUSE_DIALUP_MANAGER 1
113 // ----------------------------------------------------------------------------
115 // ----------------------------------------------------------------------------
117 // wxToolBar related settings: if wxUSE_TOOLBAR is 0, don't compile any toolbar
118 // classes at all. Otherwise, use the native toolbar class unless
119 // wxUSE_TOOLBAR_NATIVE is 0. Additionally, the generic toolbar class which
120 // supports some features which might not be supported by the native wxToolBar
121 // class may be compiled in if wxUSE_TOOLBAR_SIMPLE is 1.
123 // Default is 1 for all settings.
125 // Recommended setting: 1 for wxUSE_TOOLBAR and wxUSE_TOOLBAR_NATIVE and 0 for
126 // wxUSE_TOOLBAR_SIMPLE (the default is 1 mainly for backwards compatibility).
127 #define wxUSE_TOOLBAR 1
128 #define wxUSE_TOOLBAR_NATIVE 1
129 #define wxUSE_TOOLBAR_SIMPLE 1
131 // wxNotebook is a control with several "tabs" located on one of its sides. It
132 // may be used ot logically organise the data presented to the user instead of
133 // putting everything in one huge dialog. It replaces wxTabControl and related
134 // classes of wxWin 1.6x.
138 // Recommended setting: 1
139 #define wxUSE_NOTEBOOK 1
141 // The corresponding controls will be compiled in if wxUSE_<CONTROL> is set to
142 // 1 and not compiled into the library otherwise.
144 // Default is 1 for everything.
146 // Recommended setting: 1 (library might fail to compile for some combinations
147 // of disabled controls)
148 #define wxUSE_CARET 1
149 #define wxUSE_CHECKBOX 1
150 #define wxUSE_CHECKLISTBOX 1
151 #define wxUSE_CHOICE 1
152 #define wxUSE_COMBOBOX 1
153 #define wxUSE_GAUGE 1
154 #define wxUSE_LISTBOX 1
155 #define wxUSE_RADIOBOX 1
156 #define wxUSE_RADIOBTN 1
157 #define wxUSE_SCROLLBAR 1
158 #define wxUSE_SLIDER 1
159 #define wxUSE_SPINBTN 1
160 #define wxUSE_SPINCTRL 1
161 #define wxUSE_STATLINE 1
163 // this setting is obsolete, value is ignored
164 #define wxUSE_BUTTONBAR 1
166 // wxGrid class comes in two flavours: the original (pre wxWin 2.2) one and
167 // the new, much imporved and enhanced version. The new version is backwards
168 // compatible with the old one and should be used whenever possible, i.e. if
169 // you set wxUSE_GRID to 1, set wxUSE_NEW_GRID to 1 too.
171 // Default is 1 for both options.
173 // Recommended setting: 1 for wxUSE_NEW_GRID, 0 if you have an old code using
174 // wxGrid and 100% backwards compatible (with all old wxGrid quirks) is
177 #define wxUSE_NEW_GRID 1
179 // ----------------------------------------------------------------------------
181 // ----------------------------------------------------------------------------
183 // Windows supports the graphics format known as metafile which is, though not
184 // portable, is widely used under Windows and so is supported by wxWin (under
185 // Windows only, of course). Win16 (Win3.1) used the so-called "Window
186 // MetaFiles" or WMFs which were replaced with "Enhanced MetaFiles" or EMFs in
187 // Win32 (Win9x, NT, 2000). Both of these are supported in wxWin and, by
188 // default, WMFs will be used under Win16 and EMFs under Win32. This may be
189 // changed by setting wxUSE_WIN_METAFILES_ALWAYS to 1 and/or setting
190 // wxUSE_ENH_METAFILE to 0. You may also set wxUSE_METAFILE to 0 to not compile
191 // in any metafile related classes at all.
193 // Default is 1 for wxUSE_ENH_METAFILE and 0 for wxUSE_WIN_METAFILES_ALWAYS.
195 // Recommended setting: default or 0 for everything for portable programs.
196 #define wxUSE_METAFILE 1
197 #define wxUSE_ENH_METAFILE 1
198 #define wxUSE_WIN_METAFILES_ALWAYS 0
200 // ----------------------------------------------------------------------------
201 // Big GUI components
202 // ----------------------------------------------------------------------------
204 // wxHTML sublibrary allows to display HTML in wxWindow programs and much,
209 // Recommended setting: 1 (wxHTML is great!), set to 0 if you want compile a
213 // wxPlot is a class to display functions plots in wxWindow.
217 // Recommended setting: 1
221 #define wxUSE_GLCANVAS 0
223 // ----------------------------------------------------------------------------
224 // Postscript support settings
225 // ----------------------------------------------------------------------------
227 #define wxUSE_POSTSCRIPT 0
228 // 0 for no PostScript device context
229 #define wxUSE_AFM_FOR_POSTSCRIPT 0
230 // 1 to use font metric files in GetTextExtent
232 // 0 for no interprocess comms
233 // Note: wxHELP uses IPC under X so these are interdependent!
235 // 0 for no help facility
236 #define wxUSE_RESOURCES 1
237 // 0 for no wxGetResource/wxWriteResource
238 #define wxUSE_CONSTRAINTS 1
239 // 0 for no window layout constraint system
241 #define wxUSE_CLIPBOARD 1
242 // 0 for no clipboard functions
244 #define wxUSE_SPLINES 1
247 #define wxUSE_DRAG_AND_DROP 1
248 // 0 for no drag and drop
250 #define wxUSE_XPM_IN_MSW 1
251 // Define 1 to support the XPM package in wxBitmap.
252 #define wxUSE_IMAGE_LOADING_IN_MSW 1
253 // Use dynamic DIB loading/saving code in utils/dib under MSW.
254 #define wxUSE_RESOURCE_LOADING_IN_MSW 1
255 // Use dynamic icon/cursor loading/saving code
257 #define wxUSE_WX_RESOURCES 1
258 // Use .wxr resource mechanism (requires PrologIO library)
260 #define wxUSE_STARTUP_TIPS 1
261 // support for startup tips (wxShowTip &c)
263 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
264 // Set to 0 to disable document/view architecture
265 #define wxUSE_MDI_ARCHITECTURE 1
266 // Set to 0 to disable MDI document/view architecture
267 #define wxUSE_PRINTING_ARCHITECTURE 1
268 // Set to 0 to disable print/preview architecture code
269 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
270 // Set to 0 to disable PostScript print/preview architecture code
271 // under Windows (just use Windows printing).
272 #define wxUSE_DYNAMIC_CLASSES 1
273 // If 1, enables provision of run-time type information.
274 // NOW MANDATORY: don't change.
275 #define wxUSE_MEMORY_TRACING 1
276 // If 1, enables debugging versions of wxObject::new and
277 // wxObject::delete *IF* __WXDEBUG__ is also defined.
278 // WARNING: this code may not work with all architectures, especially
279 // if alignment is an issue.
280 #define wxUSE_DEBUG_CONTEXT 1
281 // If 1, enables wxDebugContext, for
282 // writing error messages to file, etc.
283 // If __WXDEBUG__ is not defined, will still use
284 // normal memory operators.
285 // It's recommended to set this to 1,
286 // since you may well need to output
287 // an error log in a production
288 // version (or non-debugging beta)
289 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
290 // In debug mode, cause new and delete to be redefined globally.
291 // If this causes problems (e.g. link errors), set this to 0.
293 #define wxUSE_DEBUG_NEW_ALWAYS 1
294 // In debug mode, causes new to be defined to
295 // be WXDEBUG_NEW (see object.h).
296 // If this causes problems (e.g. link errors), set this to 0.
297 // You may need to set this to 0 if using templates (at least
300 #define REMOVE_UNUSED_ARG 1
301 // Set this to 0 if your compiler can't cope
302 // with omission of prototype parameters.
305 // Define 1 to use ODBC classes
307 #define wxODBC_FWD_ONLY_CURSORS 1
308 // For backward compatibility reasons, this parameter now only
309 // controls the default scrolling method used by cursors. This
310 // default behavior can be overriden by setting the second param
311 // of wxDB::GetDbConnection() to indicate whether the connection
312 // (and any wxTable()s that use the connection) should support
313 // forward only scrolling of cursors, or both forward and backward
314 // Support for backward scrolling cursors is dependent on the
315 // data source as well as the ODBC driver being used.
318 #define wxUSE_IOSTREAMH 1
320 #define wxUSE_IOSTREAMH 1
322 // VC++ 4.2 and above allows <iostream> and <iostream.h>
323 // but you can't mix them. Set to 1 for <iostream.h>,
326 #define wxUSE_STREAMS 1
327 // If enabled (1), compiles wxWindows streams classes
329 #define wxUSE_STD_IOSTREAM 0
330 // Use standard C++ streams if 1. If 0, use wxWin
331 // streams implementation.
333 #define wxUSE_WXCONFIG 1
334 // if enabled, compiles built-in OS independent wxConfig
335 // class and it's file (any platform) and registry (Win)
336 // based implementations
337 #define wxUSE_THREADS 1
338 // support for multithreaded applications: if
339 // 1, compile in thread classes (thread.h)
340 // and make the library thread safe
342 // Use zlib for compression in streams and PNG code
343 #define wxUSE_LIBPNG 1
344 // Use PNG bitmap/image code
345 #define wxUSE_LIBJPEG 1
346 // Use JPEG bitmap/image code
347 #define wxUSE_LIBTIFF 0
348 // Use TIFF bitmap/image code
350 // Use GIF bitmap/image code
352 // Use PNM bitmap/image code
354 // Use PCX bitmap/image code
355 #define wxUSE_SERIAL 0
356 // Use serialization (requires utils/serialize)
357 #define wxUSE_DYNLIB_CLASS 1
358 // Compile in wxLibrary class for run-time
359 // DLL loading and function calling
360 #define wxUSE_TOOLTIPS 1
361 // Define to use wxToolTip class and
362 // wxWindow::SetToolTip() method
363 #define wxUSE_SOCKETS 1
364 // Set to 1 to use socket classes
365 #define wxUSE_FILESYSTEM 1
366 // Set to 1 to enable virtual file systems
367 // (needed by wxHTML)
368 #define wxUSE_FS_ZIP 1
369 #define wxUSE_FS_INET 1
370 // Set to 1 to enable virtual file systems
372 #define wxUSE_BUSYINFO 1
373 // wxBusyInfo displays window with message
374 // when app is busy. Works in same way as
376 #define wxUSE_ZIPSTREAM 1
377 // input stream for reading from zip archives
384 #define wxUSE_APPLE_IEEE 1
385 // if enabled, the float codec written by Apple
386 // will be used to write, in a portable way,
389 // use wxFile class - required by i18n code, wxConfig and others - recommended
392 // use wxTextFile class: requires wxFile, required by wxConfig
393 #define wxUSE_TEXTFILE 1
395 // i18n support: _() macro, wxLocale class. Requires wxFile
398 // wxLogXXX functions - highly recommended
402 #define wxUSE_VALIDATORS 1
404 // wxAcceleratorTable/Entry classes and support for them in wxMenu(Bar)
405 #define wxUSE_ACCEL 1
407 // wxSashWindow class
410 // text entry dialog and wxGetTextFromUser function
411 #define wxUSE_TEXTDLG 1
414 #define wxUSE_STATUSBAR 1
416 // progress dialog class for lengthy operations
417 #define wxUSE_PROGRESSDLG 1
419 // wxDirDlg class for getting a directory name from user
420 #define wxUSE_DIRDLG 1
423 * MS Windows/Windows NT
428 // drag-and-drop, clipboard, OLE Automation
430 #if defined(__WIN95__)
431 #define wxUSE_CTL3D 0
433 #define wxUSE_CTL3D 1
434 // Define 1 to use Microsoft CTL3D library.
435 // See note above about using FAFA and CTL3D.
438 // can we use RICHEDIT control?
439 #if defined(__WIN95__) && !defined(__TWIN32__) && !defined(__GNUWIN32_OLD__)
440 #define wxUSE_RICHEDIT 1
442 #define wxUSE_RICHEDIT 0
445 #define wxUSE_COMMON_DIALOGS 1
446 // On rare occasions (e.g. using DJGPP) may want
447 // to omit common dialogs
448 // (e.g. file selector, printer dialog).
449 // Switching this off also switches off
450 // the printing architecture and interactive
452 #define wxUSE_ITSY_BITSY 1
453 // Define 1 to use Microsoft's ItsyBitsy
454 // small title bar library, for wxMiniFrame
455 #define wxUSE_BITMAP_MESSAGE 1
456 // Define 1 to use bitmap messages.
457 #define wxUSE_PORTABLE_FONTS_IN_MSW 0
458 // Define 1 to use new portable font scheme in Windows
459 // (used by default under X)
460 #define wxFONT_SIZE_COMPATIBILITY 0
461 // Define 1 for font size to be backward compatible
462 // to 1.63 and earlier. 1.64 and later define point
463 // sizes to be compatible with Windows.
464 #define wxUSE_GENERIC_DIALOGS_IN_MSW 1
465 // Define 1 to use generic dialogs in Windows, even though
466 // they duplicate native common dialog (e.g. wxColourDialog)
467 #define wxUSE_PENWINDOWS 0
468 // Set to 1 to use PenWindows
470 #define wxUSE_OWNER_DRAWN 1
471 // Owner-drawn menus and listboxes
473 #define wxUSE_NATIVE_STATUSBAR 1
474 // Set to 0 to use cross-platform wxStatusBar
481 #define wxUSE_TYPEDEFS 0
482 // Use typedefs not classes for wxPoint
483 // and others, to reduce overhead and avoid
484 // MS C7 memory bug. Bounds checker
485 // complains about deallocating
486 // arrays of wxPoints if wxPoint is a class.
488 #if defined(__MINGW32__) && ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))
489 #ifndef wxUSE_NORLANDER_HEADERS
490 # define wxUSE_NORLANDER_HEADERS 1
494 #if (!defined(WIN32) && !defined(__WIN32__)) || (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS)
495 // Can't use OLE drag and drop in Windows 3.1 because we don't know how
496 // to implement UUIDs
497 // GnuWin32 doesn't have appropriate headers for e.g. IUnknown.
498 #undef wxUSE_DRAG_AND_DROP
499 #define wxUSE_DRAG_AND_DROP 0
502 // Only WIN32 supports wxStatusBar95
503 #if !defined(__WIN32__) && wxUSE_NATIVE_STATUSBAR
504 #undef wxUSE_NATIVE_STATUSBAR
505 #define wxUSE_NATIVE_STATUSBAR 0
508 // Salford C++ doesn't like some of the memory operator definitions
510 #undef wxUSE_MEMORY_TRACING
511 #define wxUSE_MEMORY_TRACING 0
513 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
514 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
516 #undef wxUSE_DEBUG_NEW_ALWAYS
517 #define wxUSE_DEBUG_NEW_ALWAYS 0
520 #define wxUSE_THREADS 0
522 #undef wxUSE_OWNER_DRAWN
523 #define wxUSE_OWNER_DRAWN 0
529 #define wxUSE_THREADS 0
536 // BC++/Win16 can't cope with the amount of data in resource.cpp
537 #if defined(__WIN16__) && defined(__BORLANDC__)
538 #undef wxUSE_WX_RESOURCES
539 #define wxUSE_WX_RESOURCES 0
545 #if defined(__WXMSW__) && defined(__WATCOMC__)
547 #define wxUSE_LIBJPEG 0
550 #if defined(__WXMSW__) && !defined(__WIN32__)
553 #define wxUSE_SOCKETS 0
556 #define wxUSE_THREADS 0
558 #undef wxUSE_TOOLTIPS
559 #define wxUSE_TOOLTIPS 0
561 #undef wxUSE_SPINCTRL
562 #define wxUSE_SPINCTRL 0
565 #define wxUSE_SPINBTN 0
568 #define wxUSE_LIBPNG 0
571 #define wxUSE_LIBJPEG 0