]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/setup_microwin.h
#undef LoadIcon() too
[wxWidgets.git] / include / wx / msw / setup_microwin.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/setup.h
3 // Purpose: Configuration for the library
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 01/02/97
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_SETUP_H_
13 #define _WX_SETUP_H_
14
15 // ----------------------------------------------------------------------------
16 // global settings
17 // ----------------------------------------------------------------------------
18
19 //#define WXWIN_OS_DESCRIPTION wxT("MicroWindows")
20
21 // define this to 0 when building wxBase library - this can also be done from
22 // makefile/project file overriding the value here
23 #ifndef wxUSE_GUI
24 #define wxUSE_GUI 1
25 #endif // wxUSE_GUI
26
27 // ----------------------------------------------------------------------------
28 // compatibility settings
29 // ----------------------------------------------------------------------------
30
31 // This setting determines the compatibility with 1.68 API:
32 // Level 0: no backward compatibility, all new features
33 // Level 1: some extra methods are defined for compatibility.
34 //
35 // Default is 0.
36 //
37 // Recommended setting: 0 (in fact the compatibility code is now very minimal
38 // so there is little advantage to setting it to 1.
39 #define WXWIN_COMPATIBILITY 0
40
41 // This setting determines the compatibility with 2.0 API: set it to 1 to
42 // enable it
43 //
44 // Default is 0.
45 //
46 // Recommended setting: 0 (please update your code instead!)
47 #define WXWIN_COMPATIBILITY_2 0
48
49 // This setting determines the compatibility with 2.0 API: set it to 1 to
50 // enable it
51 //
52 // Default is 1.
53 //
54 // Recommended setting: 0 (please update your code instead!)
55 #define WXWIN_COMPATIBILITY_2_2 1
56
57 // in wxMSW version 2.1.11 and earlier, wxIcon always derives from wxBitmap,
58 // but this is very dangerous because you can mistakenly pass an icon instead
59 // of a bitmap to a function taking "const wxBitmap&" - which will *not* work
60 // because an icon is not a valid bitmap
61 //
62 // Starting from 2.1.12, you have the choice under this backwards compatible
63 // behaviour (your code will still compile, but probably won't behave as
64 // expected!) and not deriving wxIcon class from wxBitmap, but providing a
65 // conversion ctor wxBitmap(const wxIcon&) instead.
66 //
67 // Recommended setting: 0
68 #define wxICON_IS_BITMAP 0
69
70 // Define as 1 for font size to be backward compatible to 1.63 and earlier.
71 // 1.64 and later define point sizes to be compatible with Windows.
72 //
73 // Default is 0
74 //
75 // Recommended setting: 0
76 #define wxFONT_SIZE_COMPATIBILITY 0
77
78 // Set to 0 for accurate dialog units, else 1 to be as per 2.1.16 and before.
79 // If migrating between versions, your dialogs may seem to shrink.
80 //
81 // Default is 1
82 //
83 // Recommended setting: 0 (the new calculations are more correct!)
84 #define wxDIALOG_UNIT_COMPATIBILITY 1
85
86 // ----------------------------------------------------------------------------
87 // debugging settings
88 // ----------------------------------------------------------------------------
89
90 // Generic comment about debugging settings: they are very useful if you don't
91 // use any other memory leak detection tools such as Purify/BoundsChecker, but
92 // are probably redundant otherwise. Also, Visual C++ CRT has the same features
93 // as wxWindows memory debugging subsystem built in since version 5.0 and you
94 // may prefer to use it instead of built in memory debugging code because it is
95 // faster and more fool proof.
96 //
97 // Using VC++ CRT memory debugging is enabled by default in debug mode
98 // (__WXDEBUG__) if wxUSE_GLOBAL_MEMORY_OPERATORS is *not* enabled (i.e. is 0)
99 // and if __NO_VC_CRTDBG__ is not defined.
100
101 // If 1, enables wxDebugContext, for writing error messages to file, etc. If
102 // __WXDEBUG__ is not defined, will still use normal memory operators. It's
103 // recommended to set this to 1, since you may well need to output an error log
104 // in a production version (or non-debugging beta).
105 //
106 // Default is 1.
107 //
108 // Recommended setting: 1 but see comment above
109 #define wxUSE_DEBUG_CONTEXT 1
110
111 // If 1, enables debugging versions of wxObject::new and wxObject::delete *IF*
112 // __WXDEBUG__ is also defined.
113 //
114 // WARNING: this code may not work with all architectures, especially if
115 // alignment is an issue. This switch is currently ignored for mingw / cygwin
116 //
117 // Default is 1
118 //
119 // Recommended setting: 1 but see comment in the beginning of this section
120 #define wxUSE_MEMORY_TRACING 0
121
122 // In debug mode, cause new and delete to be redefined globally.
123 // If this causes problems (e.g. link errors), set this to 0.
124 // This switch is currently ignored for mingw / cygwin
125 //
126 // Default is 1
127 //
128 // Recommended setting: 1 but see comment in the beginning of this section
129 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
130
131 // In debug mode, causes new to be defined to be WXDEBUG_NEW (see object.h). If
132 // this causes problems (e.g. link errors), set this to 0. You may need to set
133 // this to 0 if using templates (at least for VC++). This switch is currently
134 // ignored for mingw / cygwin
135 //
136 // Default is 1
137 //
138 // Recommended setting: 1 but see comment in the beginning of this section
139 #define wxUSE_DEBUG_NEW_ALWAYS 0
140
141 // wxHandleFatalExceptions() may be used to catch the program faults at run
142 // time and, instead of terminating the program with a usual GPF message box,
143 // call the user-defined wxApp::OnFatalException() function. If you set
144 // wxUSE_ON_FATAL_EXCEPTION to 0, wxHandleFatalExceptions() will not work.
145 //
146 // This setting is for Win32 only and can only be enabled if your compiler
147 // supports Win32 structured exception handling (currently only VC++ does)
148 //
149 // Default is 1
150 //
151 // Recommended setting: 1 if your compiler supports it.
152 #ifdef _MSC_VER
153 #define wxUSE_ON_FATAL_EXCEPTION 1
154 #else
155 #define wxUSE_ON_FATAL_EXCEPTION 0
156 #endif
157
158 // ----------------------------------------------------------------------------
159 // Unicode support
160 // ----------------------------------------------------------------------------
161
162 // Set wxUSE_UNICODE to 1 to compile wxWindows in Unicode mode: wxChar will be
163 // defined as wchar_t, wxString will use Unicode internally. If you set this
164 // to 1, you must use wxT() macro for all literal strings in the program.
165 //
166 // Unicode is currently only fully supported under Windows NT/2000 (Windows 9x
167 // doesn't support it and the programs compiled in Unicode mode will not run
168 // under 9x).
169 //
170 // Default is 0
171 //
172 // Recommended setting: 0 (unless you only plan to use Windows NT/2000)
173 #define wxUSE_UNICODE 0
174
175 // Set wxUSE_UNICODE_MSLU to 1 if you want to compile wxWindows in Unicode mode
176 // and be able to run compiled apps under Windows 9x as well as NT/2000/XP. This
177 // setting enables use of unicows.dll from MSLU (MS Layer for Unicode, see
178 // http://www.microsoft.com/globaldev/Articles/mslu_announce.asp). Note that you
179 // will have to modify the makefiles to include unicows.lib import library as the first
180 // library.
181 //
182 // Default is 0
183 //
184 // Recommended setting: 0
185 #define wxUSE_UNICODE_MSLU 0
186
187 // Setting wxUSE_WCHAR_T to 1 gives you some degree of Unicode support without
188 // compiling the program in Unicode mode. More precisely, it will be possible
189 // to construct wxString from a wide (Unicode) string and convert any wxString
190 // to Unicode.
191 //
192 // Default is 1
193 //
194 // Recommended setting: 1
195 #define wxUSE_WCHAR_T 0
196
197 // ----------------------------------------------------------------------------
198 // global features
199 // ----------------------------------------------------------------------------
200
201 // Support for message/error logging. This includes wxLogXXX() functions and
202 // wxLog and derived classes. Don't set this to 0 unless you really know what
203 // you are doing.
204 //
205 // Default is 1
206 //
207 // Recommended setting: 1 (always)
208 #define wxUSE_LOG 1
209
210 // Support for command line parsing using wxCmdLineParser class.
211 //
212 // Default is 1
213 //
214 // Recommended setting: 1 (can be set to 0 if you don't use the cmd line)
215 #define wxUSE_CMDLINE_PARSER 1
216
217 // Recommended setting: 1
218 #define wxUSE_LOGWINDOW 1
219
220 // Recommended setting: 1
221 #define wxUSE_LOGGUI 1
222
223 // Recommended setting: 1
224 #define wxUSE_LOG_DIALOG 0
225
226 // Support for multithreaded applications: if 1, compile in thread classes
227 // (thread.h) and make the library a bit more thread safe. Although thread
228 // support is quite stable by now, you may still consider recompiling the
229 // library without it if you have no use for it - this will result in a
230 // somewhat smaller and faster operation.
231 //
232 // This is ignored under Win16, threads are only supported under Win32.
233 //
234 // Default is 1
235 //
236 // Recommended setting: 0 unless you do plan to develop MT applications
237 #define wxUSE_THREADS 0
238
239 // If enabled (1), compiles wxWindows streams classes
240 #define wxUSE_STREAMS 1
241
242 // Use standard C++ streams if 1. If 0, use wxWin streams implementation.
243 #define wxUSE_STD_IOSTREAM 0
244
245 // Use serialization (requires utils/serialize)
246 #define wxUSE_SERIAL 0
247
248 // ----------------------------------------------------------------------------
249 // non GUI features selection
250 // ----------------------------------------------------------------------------
251
252 // Set wxUSE_LONGLONG to 1 to compile the wxLongLong class. This is a 64 bit
253 // integer which is implemented in terms of native 64 bit integers if any or
254 // uses emulation otherwise.
255 //
256 // This class is required by wxDateTime and so you should enable it if you want
257 // to use wxDateTime. For most modern platforms, it will use the native 64 bit
258 // integers in which case (almost) all of its functions are inline and it
259 // almost does not take any space, so there should be no reason to switch it
260 // off.
261 //
262 // Recommended setting: 1
263 #define wxUSE_LONGLONG 1
264
265 // Set wxUSE_(F)FILE to 1 to compile wx(F)File classes. wxFile uses low level
266 // POSIX functions for file access, wxFFile uses ANSI C stdio.h functions.
267 //
268 // Default is 1
269 //
270 // Recommended setting: 1 (wxFile is highly recommended as it is required by
271 // i18n code, wxFileConfig and others)
272 #define wxUSE_FILE 1
273 #define wxUSE_FFILE 1
274
275 // use wxTextBuffer class: required by wxTextFile
276 #define wxUSE_TEXTBUFFER 1
277
278 // use wxTextFile class: requires wxFile and wxTextBuffer, required by
279 // wxFileConfig
280 #define wxUSE_TEXTFILE 1
281
282 // i18n support: _() macro, wxLocale class. Requires wxTextFile.
283 #define wxUSE_INTL 1
284
285 // Set wxUSE_DATETIME to 1 to compile the wxDateTime and related classes which
286 // allow to manipulate dates, times and time intervals. wxDateTime replaces the
287 // old wxTime and wxDate classes which are still provided for backwards
288 // compatibility (and implemented in terms of wxDateTime).
289 //
290 // Note that this class is relatively new and is still officially in alpha
291 // stage because some features are not yet (fully) implemented. It is already
292 // quite useful though and should only be disabled if you are aiming at
293 // absolutely minimal version of the library.
294 //
295 // Requires: wxUSE_LONGLONG
296 //
297 // Default is 1
298 //
299 // Recommended setting: 1
300 #define wxUSE_DATETIME 1
301
302 // wxUSE_TIMEDATE enables compilation of the old wxDate and wxTime classes (not
303 // the same as wxDateTime!). These classes are obsolete and shouldn't be used
304 // in new code
305 //
306 // Default is 0
307 //
308 // Recommended setting: 0 unless you have legacy code which uses these classes
309 #define wxUSE_TIMEDATE 0
310
311 // Set wxUSE_TIMER to 1 to compile wxTimer class
312 //
313 // Default is 1
314 //
315 // Recommended setting: 1
316 #define wxUSE_TIMER 1
317
318 // Use wxStopWatch clas.
319 //
320 // Default is 1
321 //
322 // Recommended setting: 1 (needed by wxSocket)
323 #define wxUSE_STOPWATCH 1
324
325 // Setting wxUSE_CONFIG to 1 enables the use of wxConfig and related classes
326 // which allow the application to store its settings in the persistent
327 // storage. Setting this to 1 will also enable on-demand creation of the
328 // global config object in wxApp.
329 //
330 // See also wxUSE_CONFIG_NATIVE below.
331 //
332 // Recommended setting: 1
333 #define wxUSE_CONFIG 1
334
335 // If wxUSE_CONFIG is 1, you may choose to use either the native config
336 // classes under Windows (using .INI files under Win16 and the registry under
337 // Win32) or the portable text file format used by the config classes under
338 // Unix.
339 //
340 // Default is 1 to use native classes. Note that you may still use
341 // wxFileConfig even if you set this to 1 - just the config object created by
342 // default for the applications needs will be a wxRegConfig or wxIniConfig and
343 // not wxFileConfig.
344 //
345 // Recommended setting: 1
346 #define wxUSE_CONFIG_NATIVE 0
347
348 // If wxUSE_DIALUP_MANAGER is 1, compile in wxDialUpManager class which allows
349 // to connect/disconnect from the network and be notified whenever the dial-up
350 // network connection is established/terminated. Requires wxUSE_DYNLIB_CLASS.
351 //
352 // Default is 1.
353 //
354 // Recommended setting: 1
355 #define wxUSE_DIALUP_MANAGER 0
356
357 // Compile in wxLibrary class for run-time DLL loading and function calling.
358 // Required by wxUSE_DIALUP_MANAGER.
359 //
360 // This setting is for Win32 only
361 //
362 // Default is 1.
363 //
364 // Recommended setting: 1
365 #define wxUSE_DYNAMIC_LOADER 0
366
367 #define wxUSE_DYNLIB_CLASS 0
368
369 // Set to 1 to use socket classes
370 #define wxUSE_SOCKETS 0
371
372 // Set to 1 to enable virtual file systems (required by wxHTML)
373 #define wxUSE_FILESYSTEM 0
374
375 // Set to 1 to enable virtual ZIP filesystem (requires wxUSE_FILESYSTEM)
376 #define wxUSE_FS_ZIP 0
377
378 // Set to 1 to enable virtual Internet filesystem (requires wxUSE_FILESYSTEM)
379 #define wxUSE_FS_INET 0
380
381 // Set to 1 to compile wxZipInput/OutputStream classes.
382 #define wxUSE_ZIPSTREAM 0
383
384 // Set to 1 to compile wxZlibInput/OutputStream classes. Also required by
385 // wxUSE_LIBPNG.
386 #define wxUSE_ZLIB 0
387
388 // If enabled, the code written by Apple will be used to write, in a portable
389 // way, float on the disk. See extended.c for the license which is different
390 // from wxWindows one.
391 //
392 // Default is 1.
393 //
394 // Recommended setting: 1 unless you don't like the license terms (unlikely)
395 #define wxUSE_APPLE_IEEE 1
396
397 // Joystick support class
398 #define wxUSE_JOYSTICK 1
399
400 // wxFontMapper class
401 #define wxUSE_FONTMAP 1
402
403 // wxMimeTypesManager class
404 #define wxUSE_MIMETYPE 0
405
406 // wxSystemOptions class
407 #define wxUSE_SYSTEM_OPTIONS 1
408
409 // Support for regular expression matching via wxRegEx class: enable this to
410 // use POSIX regular expressions in your code. You need to compile regex
411 // library from src/regex to use it under Windows.
412 //
413 // Default is 0
414 //
415 // Recommended setting: 1 if your compiler supports it, if it doesn't please
416 // contribute us a makefile for src/regex for it
417 #define wxUSE_REGEX 0
418
419 // wxWave class
420 #define wxUSE_WAVE 0
421
422 // ----------------------------------------------------------------------------
423 // Individual GUI controls
424 // ----------------------------------------------------------------------------
425
426 // You must set wxUSE_CONTROLS to 1 if you are using any controls at all
427 // (without it, wxControl class is not compiled)
428 //
429 // Default is 1
430 //
431 // Recommended setting: 1 (don't change except for very special programs)
432 #define wxUSE_CONTROLS 1
433
434 // wxPopupWindow class is not used currently by wxMSW
435 //
436 // Default is 0
437 //
438 // Recommended setting: 0
439 #define wxUSE_POPUPWIN 1
440
441 // wxTipWindow allows to implement the custom tooltips, it is used by the
442 // context help classes. Requires wxUSE_POPUPWIN.
443 //
444 // Default is 1
445 //
446 // Recommended setting: 1 (may be set to 0)
447 #define wxUSE_TIPWINDOW 1
448
449 // Each of the settings below corresponds to one wxWindows control. They are
450 // all switched on by default but may be disabled if you are sure that your
451 // program (including any standard dialogs it can show!) doesn't need them and
452 // if you desperately want to save some space. If you use any of these you must
453 // set wxUSE_CONTROLS as well.
454 //
455 // Default is 1
456 //
457 // Recommended setting: 1
458 #define wxUSE_BUTTON 1 // wxButton
459 #define wxUSE_BMPBUTTON 1 // wxBitmapButton
460 #define wxUSE_CALENDARCTRL 0 // wxCalendarCtrl
461 #define wxUSE_CHECKBOX 1 // wxCheckBox
462 #define wxUSE_CHECKLISTBOX 1 // wxCheckListBox (requires wxUSE_OWNER_DRAWN)
463 #define wxUSE_CHOICE 1 // wxChoice
464 #define wxUSE_COMBOBOX 1 // wxComboBox
465 #define wxUSE_GAUGE 1 // wxGauge
466 #define wxUSE_LISTBOX 1 // wxListBox
467 #define wxUSE_LISTCTRL 0 // wxListCtrl
468 #define wxUSE_RADIOBOX 1 // wxRadioBox
469 #define wxUSE_RADIOBTN 1 // wxRadioButton
470 #define wxUSE_SCROLLBAR 1 // wxScrollBar
471 #define wxUSE_SLIDER 1 // wxSlider
472 #define wxUSE_SPINBTN 1 // wxSpinButton
473 #define wxUSE_SPINCTRL 1 // wxSpinCtrl
474 #define wxUSE_STATBOX 1 // wxStaticBox
475 #define wxUSE_STATLINE 1 // wxStaticLine
476 #define wxUSE_STATTEXT 1 // wxStaticText
477 #define wxUSE_STATBMP 1 // wxStaticBitmap
478 #define wxUSE_TEXTCTRL 1 // wxTextCtrl
479 #define wxUSE_TOGGLEBTN 0 // requires wxButton
480 #define wxUSE_TREECTRL 0 // wxTreeCtrl
481
482 // Use a status bar class? Depending on the value of wxUSE_NATIVE_STATUSBAR
483 // below either wxStatusBar95 or a generic wxStatusBar will be used.
484 //
485 // Default is 1
486 //
487 // Recommended setting: 1
488 #define wxUSE_STATUSBAR 1
489
490 // Two status bar implementations are available under Win32: the generic one
491 // or the wrapper around native control. For native look and feel the native
492 // version should be used.
493 //
494 // Default is 1.
495 //
496 // Recommended setting: 1 (there is no advantage in using the generic one)
497 #define wxUSE_NATIVE_STATUSBAR 0
498
499 // wxToolBar related settings: if wxUSE_TOOLBAR is 0, don't compile any toolbar
500 // classes at all. Otherwise, use the native toolbar class unless
501 // wxUSE_TOOLBAR_NATIVE is 0. Additionally, the generic toolbar class which
502 // supports some features which might not be supported by the native wxToolBar
503 // class may be compiled in if wxUSE_TOOLBAR_SIMPLE is 1.
504 //
505 // Default is 1 for all settings.
506 //
507 // Recommended setting: 1 for wxUSE_TOOLBAR and wxUSE_TOOLBAR_NATIVE and 0 for
508 // wxUSE_TOOLBAR_SIMPLE (the default is 1 mainly for backwards compatibility).
509 #define wxUSE_TOOLBAR 0
510 #define wxUSE_TOOLBAR_NATIVE 0
511 #define wxUSE_TOOLBAR_SIMPLE 0
512
513 // this setting is obsolete, value is ignored
514 #define wxUSE_BUTTONBAR 0
515
516 // wxNotebook is a control with several "tabs" located on one of its sides. It
517 // may be used ot logically organise the data presented to the user instead of
518 // putting everything in one huge dialog. It replaces wxTabControl and related
519 // classes of wxWin 1.6x.
520 //
521 // Default is 1.
522 //
523 // Recommended setting: 1
524 #define wxUSE_NOTEBOOK 1
525
526 // wxTabDialog is a generic version of wxNotebook but it is incompatible with
527 // the new class. It shouldn't be used in new code.
528 //
529 // Default is 0.
530 //
531 // Recommended setting: 0 (use wxNotebook)
532 #define wxUSE_TAB_DIALOG 0
533
534 // wxGrid class comes in two flavours: the original (pre wxWin 2.2) one and
535 // the new, much imporved and enhanced version. The new version is backwards
536 // compatible with the old one and should be used whenever possible, i.e. if
537 // you set wxUSE_GRID to 1, set wxUSE_NEW_GRID to 1 too.
538 //
539 // Default is 1 for both options.
540 //
541 // Recommended setting: 1 for wxUSE_NEW_GRID, 0 if you have an old code using
542 // wxGrid and 100% backwards compatibality (with all old wxGrid quirks) is
543 // essential.
544 //
545 // WIN16/BC++ resets wxUSE_NEW_GRID to 0 because it exceeds the data limit.
546 #define wxUSE_GRID 0
547 #define wxUSE_NEW_GRID 0
548
549 // wxProperty[Value/Form/List] classes, used by Dialog Editor
550 #define wxUSE_PROPSHEET 0
551
552 // ----------------------------------------------------------------------------
553 // Miscellaneous GUI stuff
554 // ----------------------------------------------------------------------------
555
556 // wxAcceleratorTable/Entry classes and support for them in wxMenu(Bar)
557 #define wxUSE_ACCEL 0
558
559 // Use wxCaret: a class implementing a "cursor" in a text control (called caret
560 // under Windows).
561 //
562 // Default is 1.
563 //
564 // Recommended setting: 1 (can be safely set to 0, not used by the library)
565 #define wxUSE_CARET 1
566
567 // Miscellaneous geometry code: needed for Canvas library
568 #define wxUSE_GEOMETRY 1
569
570 // Use wxImageList. This class is needed by wxNotebook, wxTreeCtrl and
571 // wxListCtrl.
572 //
573 // Default is 1.
574 //
575 // Recommended setting: 1 (set it to 0 if you don't use any of the controls
576 // enumerated above, then this class is mostly useless too)
577 #define wxUSE_IMAGLIST 1
578
579 // Use wxMenu, wxMenuBar, wxMenuItem.
580 //
581 // Default is 1.
582 //
583 // Recommended setting: 1 (can't be disabled under MSW)
584 #define wxUSE_MENUS 1
585
586 // Use wxSashWindow class.
587 //
588 // Default is 1.
589 //
590 // Recommended setting: 1
591 #define wxUSE_SASH 1
592
593 // Use wxSplitterWindow class.
594 //
595 // Default is 1.
596 //
597 // Recommended setting: 1
598 #define wxUSE_SPLITTER 1
599
600 // Use wxToolTip and wxWindow::Set/GetToolTip() methods.
601 //
602 // Default is 1.
603 //
604 // Recommended setting: 1
605 #define wxUSE_TOOLTIPS 0
606
607 // wxValidator class and related methods
608 #define wxUSE_VALIDATORS 0
609
610 // wxDC cacheing implementation
611 #define wxUSE_DC_CACHEING 0
612
613 // ----------------------------------------------------------------------------
614 // common dialogs
615 // ----------------------------------------------------------------------------
616
617 // Define 1 to use generic dialogs in Windows, even though they duplicate
618 // native common dialog (e.g. wxColourDialog). This is mainly useful for
619 // testing.
620 //
621 // Default is 0
622 //
623 // Recommended setting: 0
624 #define wxUSE_GENERIC_DIALOGS_IN_MSW 0
625
626 // On rare occasions (e.g. using DJGPP) may want to omit common dialogs (e.g.
627 // file selector, printer dialog). Switching this off also switches off the
628 // printing architecture and interactive wxPrinterDC.
629 //
630 // Default is 1
631 //
632 // Recommended setting: 1 (unless it really doesn't work)
633 #define wxUSE_COMMON_DIALOGS 1
634
635 // wxBusyInfo displays window with message when app is busy. Works in same way
636 // as wxBusyCursor
637 #define wxUSE_BUSYINFO 0
638
639 // Use single/multiple choice dialogs.
640 //
641 // Default is 1
642 //
643 // Recommended setting: 1 (used in the library itself)
644 #define wxUSE_CHOICEDLG 1
645
646 // Use colour picker dialog
647 //
648 // Default is 1
649 //
650 // Recommended setting: 1
651 #define wxUSE_COLOURDLG 0
652
653 // wxDirDlg class for getting a directory name from user
654 #define wxUSE_DIRDLG 0
655
656 // TODO: setting to choose the generic or native one
657
658 // Use file open/save dialogs.
659 //
660 // Default is 1
661 //
662 // Recommended setting: 1 (used in many places in the library itself)
663 #define wxUSE_FILEDLG 0
664
665 // Use find/replace dialogs.
666 //
667 // Default is 1
668 //
669 // Recommended setting: 1 (but may be safely set to 0)
670 #define wxUSE_FINDREPLDLG 0
671
672 // Use font picker dialog
673 //
674 // Default is 1
675 //
676 // Recommended setting: 1 (used in the library itself)
677 #define wxUSE_FONTDLG 0
678
679 // Use wxMessageDialog and wxMessageBox.
680 //
681 // Default is 1
682 //
683 // Recommended setting: 1 (used in the library itself)
684 #define wxUSE_MSGDLG 1
685
686 // progress dialog class for lengthy operations
687 #define wxUSE_PROGRESSDLG 0
688
689 // support for startup tips (wxShowTip &c)
690 #define wxUSE_STARTUP_TIPS 0
691
692 // text entry dialog and wxGetTextFromUser function
693 #define wxUSE_TEXTDLG 0
694
695 // number entry dialog
696 #define wxUSE_NUMBERDLG 0
697
698 // splash screen class
699 #define wxUSE_SPLASH 0
700
701 // wizards
702 #define wxUSE_WIZARDDLG 0
703
704 // ----------------------------------------------------------------------------
705 // Metafiles support
706 // ----------------------------------------------------------------------------
707
708 // Windows supports the graphics format known as metafile which is, though not
709 // portable, is widely used under Windows and so is supported by wxWin (under
710 // Windows only, of course). Win16 (Win3.1) used the so-called "Window
711 // MetaFiles" or WMFs which were replaced with "Enhanced MetaFiles" or EMFs in
712 // Win32 (Win9x, NT, 2000). Both of these are supported in wxWin and, by
713 // default, WMFs will be used under Win16 and EMFs under Win32. This may be
714 // changed by setting wxUSE_WIN_METAFILES_ALWAYS to 1 and/or setting
715 // wxUSE_ENH_METAFILE to 0. You may also set wxUSE_METAFILE to 0 to not compile
716 // in any metafile related classes at all.
717 //
718 // Default is 1 for wxUSE_ENH_METAFILE and 0 for wxUSE_WIN_METAFILES_ALWAYS.
719 //
720 // Recommended setting: default or 0 for everything for portable programs.
721 #define wxUSE_METAFILE 0
722 #define wxUSE_ENH_METAFILE 0
723 #define wxUSE_WIN_METAFILES_ALWAYS 0
724
725 // ----------------------------------------------------------------------------
726 // Big GUI components
727 // ----------------------------------------------------------------------------
728
729 // Set to 0 to disable document/view architecture
730 #define wxUSE_DOC_VIEW_ARCHITECTURE 0
731
732 // Set to 0 to disable MDI document/view architecture
733 #define wxUSE_MDI_ARCHITECTURE 0
734
735 // Set to 0 to disable print/preview architecture code
736 #define wxUSE_PRINTING_ARCHITECTURE 0
737
738 // wxHTML sublibrary allows to display HTML in wxWindow programs and much,
739 // much more.
740 //
741 // Default is 1.
742 //
743 // Recommended setting: 1 (wxHTML is great!), set to 0 if you want compile a
744 // smaller library.
745 #define wxUSE_HTML 0
746
747 // OpenGL canvas
748 #define wxUSE_GLCANVAS 0
749
750 // wxTreeLayout class
751 #define wxUSE_TREELAYOUT 0
752
753 // ----------------------------------------------------------------------------
754 // Data transfer
755 // ----------------------------------------------------------------------------
756
757 // Use wxClipboard class for clipboard copy/paste.
758 //
759 // Default is 1.
760 //
761 // Recommended setting: 1
762 #define wxUSE_CLIPBOARD 0
763
764 // Use wxDataObject and related classes. Needed for clipboard and OLE drag and
765 // drop
766 //
767 // Default is 1.
768 //
769 // Recommended setting: 1
770 #define wxUSE_DATAOBJ 0
771
772 // Use wxDropTarget and wxDropSource classes for drag and drop (this is
773 // different from "built in" drag and drop in wxTreeCtrl which is always
774 // available). Requires wxUSE_DATAOBJ.
775 //
776 // Default is 1.
777 //
778 // Recommended setting: 1
779 #define wxUSE_DRAG_AND_DROP 0
780
781 // ----------------------------------------------------------------------------
782 // miscellaneous settings
783 // ----------------------------------------------------------------------------
784
785 // wxSingleInstanceChecker class allows to verify at startup if another program
786 // instance is running (it is only available under Win32)
787 //
788 // Default is 1
789 //
790 // Recommended setting: 1 (the class is tiny, disabling it won't save much
791 // space)
792 #define wxUSE_SNGLINST_CHECKER 0
793
794 #define wxUSE_DRAGIMAGE 0
795
796 #define wxUSE_IPC 0
797 // 0 for no interprocess comms
798 #define wxUSE_HELP 0
799 // 0 for no help facility
800 #define wxUSE_MS_HTML_HELP 0
801 // 0 for no MS HTML Help
802
803 // Use wxHTML-based help controller?
804 #define wxUSE_WXHTML_HELP 0
805
806 #define wxUSE_RESOURCES 0
807 // 0 for no wxGetResource/wxWriteResource
808 #define wxUSE_CONSTRAINTS 1
809 // 0 for no window layout constraint system
810
811 #define wxUSE_SPLINES 1
812 // 0 for no splines
813
814 #define wxUSE_XPM_IN_MSW 1
815 // 0 for no XPM support in wxBitmap.
816 // Default is 1, as XPM is now fully
817 // supported this makes easier the issue
818 // of portable icons and bitmaps.
819
820 #define wxUSE_IMAGE_LOADING_IN_MSW 0
821 // Use dynamic DIB loading/saving code in utils/dib under MSW.
822 #define wxUSE_RESOURCE_LOADING_IN_MSW 0
823 // Use dynamic icon/cursor loading/saving code
824 // under MSW.
825 #define wxUSE_WX_RESOURCES 0
826 // Use .wxr resource mechanism (requires PrologIO library)
827
828 #define wxUSE_MOUSEWHEEL 0
829 // Include mouse wheel support
830
831 // ----------------------------------------------------------------------------
832 // postscript support settings
833 // ----------------------------------------------------------------------------
834
835 // Set to 1 for PostScript device context.
836 #define wxUSE_POSTSCRIPT 0
837
838 // Set to 1 to use font metric files in GetTextExtent
839 #define wxUSE_AFM_FOR_POSTSCRIPT 0
840
841 // Set to 0 to disable PostScript print/preview architecture code under Windows
842 // (just use Windows printing).
843 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 0
844
845 // ----------------------------------------------------------------------------
846 // database classes
847 // ----------------------------------------------------------------------------
848
849 // Define 1 to use ODBC classes
850 #define wxUSE_ODBC 0
851
852 // For backward compatibility reasons, this parameter now only controls the
853 // default scrolling method used by cursors. This default behavior can be
854 // overriden by setting the second param of wxDB::wxDbGetConnection() or
855 // wxDb() constructor to indicate whether the connection (and any wxDbTable()s
856 // that use the connection) should support forward only scrolling of cursors,
857 // or both forward and backward support for backward scrolling cursors is
858 // dependent on the data source as well as the ODBC driver being used.
859 #define wxODBC_FWD_ONLY_CURSORS 1
860
861 // Default is 0. Set to 1 to use the deprecated classes, enum types, function,
862 // member variables. With a setting of 1, full backward compatability with the
863 // 2.0.x release is possible. It is STRONGLY recommended that this be set to 0,
864 // as future development will be done only on the non-deprecated
865 // functions/classes/member variables/etc.
866 #define wxODBC_BACKWARD_COMPATABILITY 0
867
868 // ----------------------------------------------------------------------------
869 // other compiler (mis)features
870 // ----------------------------------------------------------------------------
871
872 // Set this to 0 if your compiler can't cope with omission of prototype
873 // parameters.
874 //
875 // Default is 1.
876 //
877 // Recommended setting: 1 (should never need to set this to 0)
878 #define REMOVE_UNUSED_ARG 1
879
880 // VC++ 4.2 and above allows <iostream> and <iostream.h> but you can't mix
881 // them. Set to 1 for <iostream.h>, 0 for <iostream>
882 //
883 // Default is 1.
884 //
885 // Recommended setting: whatever your compiler likes more
886 #define wxUSE_IOSTREAMH 1
887
888 // ----------------------------------------------------------------------------
889 // image format support
890 // ----------------------------------------------------------------------------
891
892 // wxImage supports many different image formats which can be configured at
893 // compile-time. BMP is always supported, others are optional and can be safely
894 // disabled if you don't plan to use images in such format sometimes saving
895 // substantial amount of code in the final library.
896 //
897 // Some formats require an extra library which is included in wxWin sources
898 // which is mentioned if it is the case.
899
900 // Set to 1 for wxImage support (recommended).
901 #define wxUSE_IMAGE 1
902
903 // Set to 1 for PNG format support (requires libpng). Also requires wxUSE_ZLIB.
904 #define wxUSE_LIBPNG 0
905
906 // Set to 1 for JPEG format support (requires libjpeg)
907 #define wxUSE_LIBJPEG 0
908
909 // Set to 1 for TIFF format support (requires libtiff)
910 #define wxUSE_LIBTIFF 0
911
912 // Set to 1 for GIF format support
913 #define wxUSE_GIF 0
914
915 // Set to 1 for PNM format support
916 #define wxUSE_PNM 0
917
918 // Set to 1 for PCX format support
919 #define wxUSE_PCX 0
920
921 // Set to 1 for IFF format support
922 #define wxUSE_IFF 0
923
924 // Set to 1 for XPM format support
925 #define wxUSE_XPM 1
926
927 // Set to 1 for MS Icons and Cursors format support
928 #define wxUSE_ICO_CUR 1
929
930 // Set to 1 to compile in wxPalette class
931 #define wxUSE_PALETTE 1
932
933 // ----------------------------------------------------------------------------
934 // Windows-only settings
935 // ----------------------------------------------------------------------------
936
937 // Set this to 1 if you want to use wxWindows and MFC in the same program. This
938 // will override some other settings (see below)
939 //
940 // Default is 0.
941 //
942 // Recommended setting: 0 unless you really have to use MFC
943 #define wxUSE_MFC 0
944
945 // Set this to 1 for generic OLE support: this is required for drag-and-drop,
946 // clipboard, OLE Automation. Only set it to 0 if your compiler is very old and
947 // can't compile/doesn't have the OLE headers.
948 //
949 // Default is 1.
950 //
951 // Recommended setting: 1
952 #define wxUSE_OLE 0
953
954 // Set this to 1 to use Microsoft CTL3D library for "3D-look" under Win16 or NT
955 // 3.x. This setting is ignored under Win9x and NT 4.0+.
956 //
957 // Default is 0 for (most) Win32 (systems), 1 for Win16
958 //
959 // Recommended setting: same as default
960 #if defined(__WIN95__)
961 #define wxUSE_CTL3D 0
962 #else
963 #define wxUSE_CTL3D 1
964 #endif
965
966 // Define as 1 to use Microsoft's ItsyBitsy small title bar library, for
967 // wxMiniFrame. This setting is only used for Win3.1; Win9x and NT use native
968 // miniframes support instead.
969 //
970 // Default is 0 for (most) Win32 (systems), 1 for Win16
971 //
972 // Recommended setting: same as default
973 #if defined(__WIN95__)
974 #define wxUSE_ITSY_BITSY 0
975 #else
976 #define wxUSE_ITSY_BITSY 1
977 #endif
978
979 // Set this to 1 to use RICHEDIT controls for wxTextCtrl with style wxTE_RICH
980 // which allows to put more than ~32Kb of text in it even under Win9x (NT
981 // doesn't have such limitation).
982 //
983 // Default is 1 for compilers which support it
984 //
985 // Recommended setting: 1, only set it to 0 if your compiler doesn't have
986 // or can't compile <richedit.h>
987 #if defined(__WIN95__) && !defined(__TWIN32__) && !defined(__GNUWIN32_OLD__)
988 #define wxUSE_RICHEDIT 1
989
990 // TODO: This should be ifdef'ed for any compilers that don't support
991 // RichEdit 2.0 but do have RichEdit 1.0...
992 #define wxUSE_RICHEDIT2 1
993
994 #else
995 #define wxUSE_RICHEDIT 0
996 #define wxUSE_RICHEDIT2 0
997 #endif
998
999 // Set this to 1 to enable support for the owner-drawn menu and listboxes. This
1000 // is required by wxUSE_CHECKLISTBOX.
1001 //
1002 // Default is 1.
1003 //
1004 // Recommended setting: 1, set to 0 for a small library size reduction
1005 #define wxUSE_OWNER_DRAWN 0
1006
1007 // ----------------------------------------------------------------------------
1008 // obsolete settings
1009 // ----------------------------------------------------------------------------
1010
1011 // NB: all settings in this section are obsolete and should not be used/changed
1012 // at all, they will disappear
1013
1014 // Set to 1 to use PenWindows
1015 #define wxUSE_PENWINDOWS 0
1016
1017 // Define 1 to use bitmap messages.
1018 #define wxUSE_BITMAP_MESSAGE 1
1019
1020 // If 1, enables provision of run-time type information.
1021 // NOW MANDATORY: don't change.
1022 #define wxUSE_DYNAMIC_CLASSES 1
1023
1024 // ----------------------------------------------------------------------------
1025 // disable the settings which don't work for some compilers
1026 // ----------------------------------------------------------------------------
1027
1028 #ifndef wxUSE_NORLANDER_HEADERS
1029 #if (defined(__MINGW32__) || defined(__CYGWIN__)) && ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))
1030 # define wxUSE_NORLANDER_HEADERS 1
1031 #else
1032 # define wxUSE_NORLANDER_HEADERS 0
1033 #endif
1034 #endif
1035
1036 #if defined(__GNUWIN32__)
1037 // These don't work as expected for mingw32 and cygwin32
1038 #undef wxUSE_MEMORY_TRACING
1039 #define wxUSE_MEMORY_TRACING 0
1040
1041 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
1042 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
1043
1044 #undef wxUSE_DEBUG_NEW_ALWAYS
1045 #define wxUSE_DEBUG_NEW_ALWAYS 0
1046
1047 // Cygwin betas don't have wcslen
1048 #if defined(__CYGWIN__) || defined(__CYGWIN32__)
1049 # if ! ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))
1050 # undef wxUSE_WCHAR_T
1051 # define wxUSE_WCHAR_T 0
1052 # endif
1053 #endif
1054
1055 #endif // __GNUWIN32__
1056
1057 // MFC duplicates these operators
1058 #if wxUSE_MFC
1059 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
1060 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
1061
1062 #undef wxUSE_DEBUG_NEW_ALWAYS
1063 #define wxUSE_DEBUG_NEW_ALWAYS 0
1064 #endif // wxUSE_MFC
1065
1066 #if (!defined(WIN32) && !defined(__WIN32__)) || (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS)
1067 // Can't use OLE drag and drop in Windows 3.1 because we don't know how
1068 // to implement UUIDs
1069 // GnuWin32 doesn't have appropriate headers for e.g. IUnknown.
1070 #undef wxUSE_DRAG_AND_DROP
1071 #define wxUSE_DRAG_AND_DROP 0
1072 #endif
1073
1074 // Only WIN32 supports wxStatusBar95
1075 #if !defined(__WIN32__) && wxUSE_NATIVE_STATUSBAR
1076 #undef wxUSE_NATIVE_STATUSBAR
1077 #define wxUSE_NATIVE_STATUSBAR 0
1078 #endif
1079
1080 #if !wxUSE_OWNER_DRAWN
1081 #undef wxUSE_CHECKLISTBOX
1082 #define wxUSE_CHECKLISTBOX 0
1083 #endif
1084
1085 // Salford C++ doesn't like some of the memory operator definitions
1086 #ifdef __SALFORDC__
1087 #undef wxUSE_MEMORY_TRACING
1088 #define wxUSE_MEMORY_TRACING 0
1089
1090 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
1091 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
1092
1093 #undef wxUSE_DEBUG_NEW_ALWAYS
1094 #define wxUSE_DEBUG_NEW_ALWAYS 0
1095
1096 #undef wxUSE_THREADS
1097 #define wxUSE_THREADS 0
1098
1099 #undef wxUSE_OWNER_DRAWN
1100 #define wxUSE_OWNER_DRAWN 0
1101 #endif // __SALFORDC__
1102
1103 #ifdef __TWIN32__
1104
1105 #undef wxUSE_THREADS
1106 #define wxUSE_THREADS 0
1107
1108 #undef wxUSE_ODBC
1109 #define wxUSE_ODBC 0
1110
1111 #endif // __TWIN32__
1112
1113 // BC++/Win16 can't cope with the amount of data in resource.cpp
1114 #if defined(__WIN16__) && defined(__BORLANDC__)
1115 #undef wxUSE_WX_RESOURCES
1116 #define wxUSE_WX_RESOURCES 0
1117
1118 #undef wxUSE_ODBC
1119 #define wxUSE_ODBC 0
1120
1121 #undef wxUSE_NEW_GRID
1122 #define wxUSE_NEW_GRID 0
1123 #endif
1124
1125 #if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
1126 // BC++ 4.0 can't compile JPEG library
1127 #undef wxUSE_LIBJPEG
1128 #define wxUSE_LIBJPEG 0
1129 #endif
1130
1131 // wxUSE_DEBUG_NEW_ALWAYS = 1 not compatible with BC++ in DLL mode
1132 #if defined(__BORLANDC__) && (defined(WXMAKINGDLL) || defined(WXUSINGDLL))
1133 #undef wxUSE_DEBUG_NEW_ALWAYS
1134 #define wxUSE_DEBUG_NEW_ALWAYS 0
1135 #endif
1136
1137 #if defined(__WXMSW__) && defined(__WATCOMC__)
1138 /*
1139 #undef wxUSE_GLCANVAS
1140 #define wxUSE_GLCANVAS 0
1141 */
1142
1143 #undef wxUSE_WCHAR_T
1144 #define wxUSE_WCHAR_T 0
1145 #endif
1146
1147 #if defined(__WXMSW__) && !defined(__WIN32__)
1148
1149 #undef wxUSE_SOCKETS
1150 #define wxUSE_SOCKETS 0
1151
1152 #undef wxUSE_THREADS
1153 #define wxUSE_THREADS 0
1154
1155 #undef wxUSE_TOOLTIPS
1156 #define wxUSE_TOOLTIPS 0
1157
1158 #undef wxUSE_SPINCTRL
1159 #define wxUSE_SPINCTRL 0
1160
1161 #undef wxUSE_SPINBTN
1162 #define wxUSE_SPINBTN 0
1163
1164 #undef wxUSE_LIBPNG
1165 #define wxUSE_LIBPNG 0
1166
1167 #undef wxUSE_LIBJPEG
1168 #define wxUSE_LIBJPEG 0
1169
1170 #undef wxUSE_LIBTIFF
1171 #define wxUSE_LIBTIFF 0
1172
1173 #undef wxUSE_GIF
1174 #define wxUSE_GIF 0
1175
1176 #undef wxUSE_PNM
1177 #define wxUSE_PNM 0
1178
1179 #undef wxUSE_PCX
1180 #define wxUSE_PCX 0
1181
1182 #undef wxUSE_GLCANVAS
1183 #define wxUSE_GLCANVAS 0
1184
1185 #undef wxUSE_MS_HTML_HELP
1186 #define wxUSE_MS_HTML_HELP 0
1187
1188 #undef wxUSE_WCHAR_T
1189 #define wxUSE_WCHAR_T 0
1190
1191 #endif // Win16
1192
1193 // ----------------------------------------------------------------------------
1194 // undef the things which don't make sense for wxBase build
1195 // ----------------------------------------------------------------------------
1196
1197 #if !wxUSE_GUI
1198
1199 #undef wxUSE_HTML
1200 #define wxUSE_HTML 0
1201
1202 #endif // !wxUSE_GUI
1203
1204 // ----------------------------------------------------------------------------
1205 // check the settings consistency: do it here to abort compilation immediately
1206 // and not almost in the very end when the relevant file fails to compile and
1207 // you need to modify setup.h and rebuild everything
1208 // ----------------------------------------------------------------------------
1209
1210 #if wxUSE_DATETIME && !wxUSE_LONGLONG
1211 #error wxDateTime requires wxLongLong
1212 #endif
1213
1214 #if wxUSE_TEXTFILE && !wxUSE_FILE
1215 #error You cannot compile wxTextFile without wxFile
1216 #endif
1217
1218 #if wxUSE_FILESYSTEM && !wxUSE_STREAMS
1219 #error You cannot compile virtual file systems without wxUSE_STREAMS
1220 #endif
1221
1222 #if wxUSE_HTML && !wxUSE_FILESYSTEM
1223 #error You cannot compile wxHTML without virtual file systems
1224 #endif
1225
1226 // add more tests here...
1227
1228 #endif
1229 // _WX_SETUP_H_