]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/setup_microwin.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 WXWIN_OS_DESCRIPTION wxT("MicroWindows")
21 // define this to 0 when building wxBase library - this can also be done from
22 // makefile/project file overriding the value here
27 // ----------------------------------------------------------------------------
28 // compatibility settings
29 // ----------------------------------------------------------------------------
31 // This setting determines the compatibility with 2.6 API: set it to 0 to
32 // flag all cases of using deprecated functions.
34 // Default is 1 but please try building your code with 0 as the default will
35 // change to 0 in the next version and the deprecated functions will disappear
36 // in the version after it completely.
38 // Recommended setting: 0 (please update your code)
39 #define WXWIN_COMPATIBILITY_2_6 1
41 // Set to 0 for accurate dialog units, else 1 to be as per 2.1.16 and before.
42 // If migrating between versions, your dialogs may seem to shrink.
46 // Recommended setting: 0 (the new calculations are more correct!)
47 #define wxDIALOG_UNIT_COMPATIBILITY 1
49 // ----------------------------------------------------------------------------
51 // ----------------------------------------------------------------------------
53 // Generic comment about debugging settings: they are very useful if you don't
54 // use any other memory leak detection tools such as Purify/BoundsChecker, but
55 // are probably redundant otherwise. Also, Visual C++ CRT has the same features
56 // as wxWidgets memory debugging subsystem built in since version 5.0 and you
57 // may prefer to use it instead of built in memory debugging code because it is
58 // faster and more fool proof.
60 // Using VC++ CRT memory debugging is enabled by default in debug mode
61 // (__WXDEBUG__) if wxUSE_GLOBAL_MEMORY_OPERATORS is *not* enabled (i.e. is 0)
62 // and if __NO_VC_CRTDBG__ is not defined.
64 // If 1, enables wxDebugContext, for writing error messages to file, etc. If
65 // __WXDEBUG__ is not defined, will still use normal memory operators. It's
66 // recommended to set this to 1, since you may well need to output an error log
67 // in a production version (or non-debugging beta).
71 // Recommended setting: 1 but see comment above
72 #define wxUSE_DEBUG_CONTEXT 1
74 // If 1, enables debugging versions of wxObject::new and wxObject::delete *IF*
75 // __WXDEBUG__ is also defined.
77 // WARNING: this code may not work with all architectures, especially if
78 // alignment is an issue. This switch is currently ignored for mingw / cygwin
82 // Recommended setting: 1 but see comment in the beginning of this section
83 #define wxUSE_MEMORY_TRACING 0
85 // In debug mode, cause new and delete to be redefined globally.
86 // If this causes problems (e.g. link errors), set this to 0.
87 // This switch is currently ignored for mingw / cygwin
91 // Recommended setting: 1 but see comment in the beginning of this section
92 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
94 // In debug mode, causes new to be defined to be WXDEBUG_NEW (see object.h). If
95 // this causes problems (e.g. link errors), set this to 0. You may need to set
96 // this to 0 if using templates (at least for VC++). This switch is currently
97 // ignored for mingw / cygwin
101 // Recommended setting: 1 but see comment in the beginning of this section
102 #define wxUSE_DEBUG_NEW_ALWAYS 0
104 // wxHandleFatalExceptions() may be used to catch the program faults at run
105 // time and, instead of terminating the program with a usual GPF message box,
106 // call the user-defined wxApp::OnFatalException() function. If you set
107 // wxUSE_ON_FATAL_EXCEPTION to 0, wxHandleFatalExceptions() will not work.
109 // This setting is for Win32 only and can only be enabled if your compiler
110 // supports Win32 structured exception handling (currently only VC++ does)
114 // Recommended setting: 1 if your compiler supports it.
116 #define wxUSE_ON_FATAL_EXCEPTION 1
118 #define wxUSE_ON_FATAL_EXCEPTION 0
121 // ----------------------------------------------------------------------------
123 // ----------------------------------------------------------------------------
125 // Set wxUSE_UNICODE to 1 to compile wxWidgets in Unicode mode: wxChar will be
126 // defined as wchar_t, wxString will use Unicode internally. If you set this
127 // to 1, you must use wxT() macro for all literal strings in the program.
129 // Unicode is currently only fully supported under Windows NT/2000 (Windows 9x
130 // doesn't support it and the programs compiled in Unicode mode will not run
135 // Recommended setting: 0 (unless you only plan to use Windows NT/2000)
136 #define wxUSE_UNICODE 0
138 // Set wxUSE_UNICODE_MSLU to 1 if you want to compile wxWidgets in Unicode mode
139 // and be able to run compiled apps under Windows 9x as well as NT/2000/XP. This
140 // setting enables use of unicows.dll from MSLU (MS Layer for Unicode, see
141 // http://www.microsoft.com/globaldev/Articles/mslu_announce.asp). Note that you
142 // will have to modify the makefiles to include unicows.lib import library as the first
147 // Recommended setting: 0
148 #define wxUSE_UNICODE_MSLU 0
150 // Setting wxUSE_WCHAR_T to 1 gives you some degree of Unicode support without
151 // compiling the program in Unicode mode. More precisely, it will be possible
152 // to construct wxString from a wide (Unicode) string and convert any wxString
157 // Recommended setting: 1
158 #define wxUSE_WCHAR_T 0
160 // ----------------------------------------------------------------------------
162 // ----------------------------------------------------------------------------
164 // Support for message/error logging. This includes wxLogXXX() functions and
165 // wxLog and derived classes. Don't set this to 0 unless you really know what
170 // Recommended setting: 1 (always)
173 // Support for command line parsing using wxCmdLineParser class.
177 // Recommended setting: 1 (can be set to 0 if you don't use the cmd line)
178 #define wxUSE_CMDLINE_PARSER 1
180 // Recommended setting: 1
181 #define wxUSE_LOGWINDOW 1
183 // Recommended setting: 1
184 #define wxUSE_LOGGUI 1
186 // Recommended setting: 1
187 #define wxUSE_LOG_DIALOG 0
189 // Support for multithreaded applications: if 1, compile in thread classes
190 // (thread.h) and make the library a bit more thread safe. Although thread
191 // support is quite stable by now, you may still consider recompiling the
192 // library without it if you have no use for it - this will result in a
193 // somewhat smaller and faster operation.
195 // This is ignored under Win16, threads are only supported under Win32.
199 // Recommended setting: 0 unless you do plan to develop MT applications
200 #define wxUSE_THREADS 0
202 // If enabled (1), compiles wxWidgets streams classes
203 #define wxUSE_STREAMS 1
205 // Use standard C++ streams if 1. If 0, use wxWin streams implementation.
206 #define wxUSE_STD_IOSTREAM 0
208 // Use serialization (requires utils/serialize)
209 #define wxUSE_SERIAL 0
211 // ----------------------------------------------------------------------------
212 // non GUI features selection
213 // ----------------------------------------------------------------------------
215 // Set wxUSE_LONGLONG to 1 to compile the wxLongLong class. This is a 64 bit
216 // integer which is implemented in terms of native 64 bit integers if any or
217 // uses emulation otherwise.
219 // This class is required by wxDateTime and so you should enable it if you want
220 // to use wxDateTime. For most modern platforms, it will use the native 64 bit
221 // integers in which case (almost) all of its functions are inline and it
222 // almost does not take any space, so there should be no reason to switch it
225 // Recommended setting: 1
226 #define wxUSE_LONGLONG 1
228 // Set wxUSE_(F)FILE to 1 to compile wx(F)File classes. wxFile uses low level
229 // POSIX functions for file access, wxFFile uses ANSI C stdio.h functions.
233 // Recommended setting: 1 (wxFile is highly recommended as it is required by
234 // i18n code, wxFileConfig and others)
236 #define wxUSE_FFILE 1
238 // use wxTextBuffer class: required by wxTextFile
239 #define wxUSE_TEXTBUFFER 1
241 // use wxTextFile class: requires wxFile and wxTextBuffer, required by
243 #define wxUSE_TEXTFILE 1
245 // i18n support: _() macro, wxLocale class. Requires wxTextFile.
248 // Set wxUSE_DATETIME to 1 to compile the wxDateTime and related classes which
249 // allow to manipulate dates, times and time intervals. wxDateTime replaces the
250 // old wxTime and wxDate classes which are still provided for backwards
251 // compatibility (and implemented in terms of wxDateTime).
253 // Note that this class is relatively new and is still officially in alpha
254 // stage because some features are not yet (fully) implemented. It is already
255 // quite useful though and should only be disabled if you are aiming at
256 // absolutely minimal version of the library.
258 // Requires: wxUSE_LONGLONG
262 // Recommended setting: 1
263 #define wxUSE_DATETIME 1
265 // Set wxUSE_TIMER to 1 to compile wxTimer class
269 // Recommended setting: 1
270 #define wxUSE_TIMER 1
272 // Use wxStopWatch clas.
276 // Recommended setting: 1 (needed by wxSocket)
277 #define wxUSE_STOPWATCH 1
279 // Setting wxUSE_CONFIG to 1 enables the use of wxConfig and related classes
280 // which allow the application to store its settings in the persistent
281 // storage. Setting this to 1 will also enable on-demand creation of the
282 // global config object in wxApp.
284 // See also wxUSE_CONFIG_NATIVE below.
286 // Recommended setting: 1
287 #define wxUSE_CONFIG 1
289 // If wxUSE_CONFIG is 1, you may choose to use either the native config
290 // classes under Windows (using .INI files under Win16 and the registry under
291 // Win32) or the portable text file format used by the config classes under
294 // Default is 1 to use native classes. Note that you may still use
295 // wxFileConfig even if you set this to 1 - just the config object created by
296 // default for the applications needs will be a wxRegConfig or wxIniConfig and
299 // Recommended setting: 1
300 #define wxUSE_CONFIG_NATIVE 0
302 // If wxUSE_DIALUP_MANAGER is 1, compile in wxDialUpManager class which allows
303 // to connect/disconnect from the network and be notified whenever the dial-up
304 // network connection is established/terminated. Requires wxUSE_DYNLIB_CLASS.
308 // Recommended setting: 1
309 #define wxUSE_DIALUP_MANAGER 0
311 // Compile in wxLibrary class for run-time DLL loading and function calling.
312 // Required by wxUSE_DIALUP_MANAGER.
314 // This setting is for Win32 only
318 // Recommended setting: 1
319 #define wxUSE_DYNAMIC_LOADER 0
321 #define wxUSE_DYNLIB_CLASS 0
323 // Set to 1 to use socket classes
324 #define wxUSE_SOCKETS 0
326 // Set to 1 to enable virtual file systems (required by wxHTML)
327 #define wxUSE_FILESYSTEM 0
329 // Set to 1 to enable virtual ZIP filesystem (requires wxUSE_FILESYSTEM)
330 #define wxUSE_FS_ZIP 0
332 // Set to 1 to enable virtual Internet filesystem (requires wxUSE_FILESYSTEM)
333 #define wxUSE_FS_INET 0
335 // Set to 1 to compile wxZipInput/OutputStream classes.
336 #define wxUSE_ZIPSTREAM 0
338 // Set to 1 to compile wxZlibInput/OutputStream classes. Also required by
342 // If enabled, the code written by Apple will be used to write, in a portable
343 // way, float on the disk. See extended.c for the license which is different
344 // from wxWidgets one.
348 // Recommended setting: 1 unless you don't like the license terms (unlikely)
349 #define wxUSE_APPLE_IEEE 1
351 // Joystick support class
352 #define wxUSE_JOYSTICK 1
354 // wxFontMapper class
355 #define wxUSE_FONTMAP 1
357 // wxMimeTypesManager class
358 #define wxUSE_MIMETYPE 0
360 // wxSystemOptions class
361 #define wxUSE_SYSTEM_OPTIONS 1
363 // Support for regular expression matching via wxRegEx class: enable this to
364 // use POSIX regular expressions in your code. You need to compile regex
365 // library from src/regex to use it under Windows.
369 // Recommended setting: 1 if your compiler supports it, if it doesn't please
370 // contribute us a makefile for src/regex for it
371 #define wxUSE_REGEX 0
374 #define wxUSE_SOUND 0
380 // Recommended setting: 1
381 #define wxUSE_MEDIACTRL 1
387 // Recommended setting: 1 if you have the QT SDK installed and you need it, else 0
388 #define wxUSE_QUICKTIME 0
394 // Recommended setting: 1 if the DirectX 7 SDK is installed (highly recommended), else 0
395 #define wxUSE_DIRECTSHOW 1
397 // Use wxWidget's XRC XML-based resource system. Recommended.
401 // Recommended setting: 1 (requires wxUSE_XML)
404 // XML parsing classes. Note that their API will change in the future, so
405 // using wxXmlDocument and wxXmlNode in your app is not recommended.
409 // Recommended setting: 1 (required by XRC)
416 // ----------------------------------------------------------------------------
417 // Individual GUI controls
418 // ----------------------------------------------------------------------------
420 // You must set wxUSE_CONTROLS to 1 if you are using any controls at all
421 // (without it, wxControl class is not compiled)
425 // Recommended setting: 1 (don't change except for very special programs)
426 #define wxUSE_CONTROLS 1
428 // wxPopupWindow class is not used currently by wxMSW
432 // Recommended setting: 0
433 #define wxUSE_POPUPWIN 1
435 // wxTipWindow allows to implement the custom tooltips, it is used by the
436 // context help classes. Requires wxUSE_POPUPWIN.
440 // Recommended setting: 1 (may be set to 0)
441 #define wxUSE_TIPWINDOW 1
443 // Each of the settings below corresponds to one wxWidgets control. They are
444 // all switched on by default but may be disabled if you are sure that your
445 // program (including any standard dialogs it can show!) doesn't need them and
446 // if you desperately want to save some space. If you use any of these you must
447 // set wxUSE_CONTROLS as well.
451 // Recommended setting: 1
452 #define wxUSE_BUTTON 1 // wxButton
453 #define wxUSE_BMPBUTTON 1 // wxBitmapButton
454 #define wxUSE_CALENDARCTRL 0 // wxCalendarCtrl
455 #define wxUSE_CHECKBOX 1 // wxCheckBox
456 #define wxUSE_CHECKLISTBOX 1 // wxCheckListBox (requires wxUSE_OWNER_DRAWN)
457 #define wxUSE_CHOICE 1 // wxChoice
458 #define wxUSE_COMBOBOX 1 // wxComboBox
459 #define wxUSE_GAUGE 1 // wxGauge
460 #define wxUSE_LISTBOX 1 // wxListBox
461 #define wxUSE_LISTCTRL 0 // wxListCtrl
462 #define wxUSE_RADIOBOX 1 // wxRadioBox
463 #define wxUSE_RADIOBTN 1 // wxRadioButton
464 #define wxUSE_SCROLLBAR 1 // wxScrollBar
465 #define wxUSE_SLIDER 1 // wxSlider
466 #define wxUSE_SPINBTN 1 // wxSpinButton
467 #define wxUSE_SPINCTRL 1 // wxSpinCtrl
468 #define wxUSE_STATBOX 1 // wxStaticBox
469 #define wxUSE_STATLINE 1 // wxStaticLine
470 #define wxUSE_STATTEXT 1 // wxStaticText
471 #define wxUSE_STATBMP 1 // wxStaticBitmap
472 #define wxUSE_TEXTCTRL 1 // wxTextCtrl
473 #define wxUSE_TOGGLEBTN 0 // requires wxButton
474 #define wxUSE_TREECTRL 0 // wxTreeCtrl
476 // Use a status bar class? Depending on the value of wxUSE_NATIVE_STATUSBAR
477 // below either wxStatusBar95 or a generic wxStatusBar will be used.
481 // Recommended setting: 1
482 #define wxUSE_STATUSBAR 1
484 // Two status bar implementations are available under Win32: the generic one
485 // or the wrapper around native control. For native look and feel the native
486 // version should be used.
490 // Recommended setting: 1 (there is no advantage in using the generic one)
491 #define wxUSE_NATIVE_STATUSBAR 0
493 // wxToolBar related settings: if wxUSE_TOOLBAR is 0, don't compile any toolbar
494 // classes at all. Otherwise, use the native toolbar class unless
495 // wxUSE_TOOLBAR_NATIVE is 0.
497 // Default is 1 for all settings.
499 // Recommended setting: 1 for wxUSE_TOOLBAR and wxUSE_TOOLBAR_NATIVE.
500 #define wxUSE_TOOLBAR 0
501 #define wxUSE_TOOLBAR_NATIVE 0
503 // wxNotebook is a control with several "tabs" located on one of its sides. It
504 // may be used ot logically organise the data presented to the user instead of
505 // putting everything in one huge dialog. It replaces wxTabControl and related
506 // classes of wxWin 1.6x.
510 // Recommended setting: 1
511 #define wxUSE_NOTEBOOK 1
513 // wxTabDialog is a generic version of wxNotebook but it is incompatible with
514 // the new class. It shouldn't be used in new code.
518 // Recommended setting: 0 (use wxNotebook)
519 #define wxUSE_TAB_DIALOG 0
526 // wxProperty[Value/Form/List] classes, used by Dialog Editor
527 #define wxUSE_PROPSHEET 0
529 // ----------------------------------------------------------------------------
530 // Miscellaneous GUI stuff
531 // ----------------------------------------------------------------------------
533 // wxAcceleratorTable/Entry classes and support for them in wxMenu(Bar)
534 #define wxUSE_ACCEL 0
536 // Use wxCaret: a class implementing a "cursor" in a text control (called caret
541 // Recommended setting: 1 (can be safely set to 0, not used by the library)
542 #define wxUSE_CARET 1
544 // Miscellaneous geometry code: needed for Canvas library
545 #define wxUSE_GEOMETRY 1
547 // Use wxImageList. This class is needed by wxNotebook, wxTreeCtrl and
552 // Recommended setting: 1 (set it to 0 if you don't use any of the controls
553 // enumerated above, then this class is mostly useless too)
554 #define wxUSE_IMAGLIST 1
556 // Use wxMenu, wxMenuBar, wxMenuItem.
560 // Recommended setting: 1 (can't be disabled under MSW)
561 #define wxUSE_MENUS 1
563 // Use wxSashWindow class.
567 // Recommended setting: 1
570 // Use wxSplitterWindow class.
574 // Recommended setting: 1
575 #define wxUSE_SPLITTER 1
577 // Use wxToolTip and wxWindow::Set/GetToolTip() methods.
581 // Recommended setting: 1
582 #define wxUSE_TOOLTIPS 0
584 // wxValidator class and related methods
585 #define wxUSE_VALIDATORS 0
587 // wxDC cacheing implementation
588 #define wxUSE_DC_CACHEING 0
590 // ----------------------------------------------------------------------------
592 // ----------------------------------------------------------------------------
594 // On rare occasions (e.g. using DJGPP) may want to omit common dialogs (e.g.
595 // file selector, printer dialog). Switching this off also switches off the
596 // printing architecture and interactive wxPrinterDC.
600 // Recommended setting: 1 (unless it really doesn't work)
601 #define wxUSE_COMMON_DIALOGS 1
603 // wxBusyInfo displays window with message when app is busy. Works in same way
605 #define wxUSE_BUSYINFO 0
607 // Use single/multiple choice dialogs.
611 // Recommended setting: 1 (used in the library itself)
612 #define wxUSE_CHOICEDLG 1
614 // Use colour picker dialog
618 // Recommended setting: 1
619 #define wxUSE_COLOURDLG 0
621 // wxDirDlg class for getting a directory name from user
622 #define wxUSE_DIRDLG 0
624 // TODO: setting to choose the generic or native one
626 // Use file open/save dialogs.
630 // Recommended setting: 1 (used in many places in the library itself)
631 #define wxUSE_FILEDLG 0
633 // Use find/replace dialogs.
637 // Recommended setting: 1 (but may be safely set to 0)
638 #define wxUSE_FINDREPLDLG 0
640 // Use font picker dialog
644 // Recommended setting: 1 (used in the library itself)
645 #define wxUSE_FONTDLG 0
647 // Use wxMessageDialog and wxMessageBox.
651 // Recommended setting: 1 (used in the library itself)
652 #define wxUSE_MSGDLG 1
654 // progress dialog class for lengthy operations
655 #define wxUSE_PROGRESSDLG 0
657 // support for startup tips (wxShowTip &c)
658 #define wxUSE_STARTUP_TIPS 0
660 // text entry dialog and wxGetTextFromUser function
661 #define wxUSE_TEXTDLG 0
663 // number entry dialog
664 #define wxUSE_NUMBERDLG 0
666 // splash screen class
667 #define wxUSE_SPLASH 0
670 #define wxUSE_WIZARDDLG 0
672 // ----------------------------------------------------------------------------
674 // ----------------------------------------------------------------------------
676 // Windows supports the graphics format known as metafile which is, though not
677 // portable, is widely used under Windows and so is supported by wxWin (under
678 // Windows only, of course). Win16 (Win3.1) used the so-called "Window
679 // MetaFiles" or WMFs which were replaced with "Enhanced MetaFiles" or EMFs in
680 // Win32 (Win9x, NT, 2000). Both of these are supported in wxWin and, by
681 // default, WMFs will be used under Win16 and EMFs under Win32. This may be
682 // changed by setting wxUSE_WIN_METAFILES_ALWAYS to 1 and/or setting
683 // wxUSE_ENH_METAFILE to 0. You may also set wxUSE_METAFILE to 0 to not compile
684 // in any metafile related classes at all.
686 // Default is 1 for wxUSE_ENH_METAFILE and 0 for wxUSE_WIN_METAFILES_ALWAYS.
688 // Recommended setting: default or 0 for everything for portable programs.
689 #define wxUSE_METAFILE 0
690 #define wxUSE_ENH_METAFILE 0
691 #define wxUSE_WIN_METAFILES_ALWAYS 0
693 // ----------------------------------------------------------------------------
694 // Big GUI components
695 // ----------------------------------------------------------------------------
697 // Set to 0 to disable document/view architecture
698 #define wxUSE_DOC_VIEW_ARCHITECTURE 0
700 // Set to 0 to disable MDI document/view architecture
701 #define wxUSE_MDI_ARCHITECTURE 0
703 // Set to 0 to disable print/preview architecture code
704 #define wxUSE_PRINTING_ARCHITECTURE 0
706 // wxHTML sublibrary allows to display HTML in wxWindow programs and much,
711 // Recommended setting: 1 (wxHTML is great!), set to 0 if you want compile a
716 #define wxUSE_GLCANVAS 0
718 // wxTreeLayout class
719 #define wxUSE_TREELAYOUT 0
721 // ----------------------------------------------------------------------------
723 // ----------------------------------------------------------------------------
725 // Use wxClipboard class for clipboard copy/paste.
729 // Recommended setting: 1
730 #define wxUSE_CLIPBOARD 0
732 // Use wxDataObject and related classes. Needed for clipboard and OLE drag and
737 // Recommended setting: 1
738 #define wxUSE_DATAOBJ 0
740 // Use wxDropTarget and wxDropSource classes for drag and drop (this is
741 // different from "built in" drag and drop in wxTreeCtrl which is always
742 // available). Requires wxUSE_DATAOBJ.
746 // Recommended setting: 1
747 #define wxUSE_DRAG_AND_DROP 0
749 // ----------------------------------------------------------------------------
750 // miscellaneous settings
751 // ----------------------------------------------------------------------------
753 // wxSingleInstanceChecker class allows to verify at startup if another program
754 // instance is running (it is only available under Win32)
758 // Recommended setting: 1 (the class is tiny, disabling it won't save much
760 #define wxUSE_SNGLINST_CHECKER 0
762 #define wxUSE_DRAGIMAGE 0
765 // 0 for no interprocess comms
767 // 0 for no help facility
768 #define wxUSE_MS_HTML_HELP 0
769 // 0 for no MS HTML Help
771 // Use wxHTML-based help controller?
772 #define wxUSE_WXHTML_HELP 0
774 #define wxUSE_RESOURCES 0
775 // 0 for no wxGetResource/wxWriteResource
776 #define wxUSE_CONSTRAINTS 1
777 // 0 for no window layout constraint system
779 #define wxUSE_SPLINES 1
782 #define wxUSE_XPM_IN_MSW 1
783 // 0 for no XPM support in wxBitmap.
784 // Default is 1, as XPM is now fully
785 // supported this makes easier the issue
786 // of portable icons and bitmaps.
788 #define wxUSE_IMAGE_LOADING_IN_MSW 0
789 // Use dynamic DIB loading/saving code in utils/dib under MSW.
790 #define wxUSE_RESOURCE_LOADING_IN_MSW 0
791 // Use dynamic icon/cursor loading/saving code
793 #define wxUSE_WX_RESOURCES 0
794 // Use .wxr resource mechanism (requires PrologIO library)
796 #define wxUSE_MOUSEWHEEL 0
797 // Include mouse wheel support
799 // ----------------------------------------------------------------------------
800 // postscript support settings
801 // ----------------------------------------------------------------------------
803 // Set to 1 for PostScript device context.
804 #define wxUSE_POSTSCRIPT 0
806 // Set to 1 to use font metric files in GetTextExtent
807 #define wxUSE_AFM_FOR_POSTSCRIPT 0
809 // ----------------------------------------------------------------------------
811 // ----------------------------------------------------------------------------
813 // Define 1 to use ODBC classes
816 // For backward compatibility reasons, this parameter now only controls the
817 // default scrolling method used by cursors. This default behavior can be
818 // overriden by setting the second param of wxDB::wxDbGetConnection() or
819 // wxDb() constructor to indicate whether the connection (and any wxDbTable()s
820 // that use the connection) should support forward only scrolling of cursors,
821 // or both forward and backward support for backward scrolling cursors is
822 // dependent on the data source as well as the ODBC driver being used.
823 #define wxODBC_FWD_ONLY_CURSORS 1
825 // Default is 0. Set to 1 to use the deprecated classes, enum types, function,
826 // member variables. With a setting of 1, full backward compatibility with the
827 // 2.0.x release is possible. It is STRONGLY recommended that this be set to 0,
828 // as future development will be done only on the non-deprecated
829 // functions/classes/member variables/etc.
830 #define wxODBC_BACKWARD_COMPATABILITY 0
832 // ----------------------------------------------------------------------------
833 // other compiler (mis)features
834 // ----------------------------------------------------------------------------
836 // Set this to 0 if your compiler can't cope with omission of prototype
841 // Recommended setting: 1 (should never need to set this to 0)
842 #define REMOVE_UNUSED_ARG 1
844 // VC++ 4.2 and above allows <iostream> and <iostream.h> but you can't mix
845 // them. Set to 1 for <iostream.h>, 0 for <iostream>
849 // Recommended setting: whatever your compiler likes more
850 #define wxUSE_IOSTREAMH 1
852 // ----------------------------------------------------------------------------
853 // image format support
854 // ----------------------------------------------------------------------------
856 // wxImage supports many different image formats which can be configured at
857 // compile-time. BMP is always supported, others are optional and can be safely
858 // disabled if you don't plan to use images in such format sometimes saving
859 // substantial amount of code in the final library.
861 // Some formats require an extra library which is included in wxWin sources
862 // which is mentioned if it is the case.
864 // Set to 1 for wxImage support (recommended).
865 #define wxUSE_IMAGE 1
867 // Set to 1 for PNG format support (requires libpng). Also requires wxUSE_ZLIB.
868 #define wxUSE_LIBPNG 0
870 // Set to 1 for JPEG format support (requires libjpeg)
871 #define wxUSE_LIBJPEG 0
873 // Set to 1 for TIFF format support (requires libtiff)
874 #define wxUSE_LIBTIFF 0
876 // Set to 1 for GIF format support
879 // Set to 1 for PNM format support
882 // Set to 1 for PCX format support
885 // Set to 1 for IFF format support
888 // Set to 1 for XPM format support
891 // Set to 1 for MS Icons and Cursors format support
892 #define wxUSE_ICO_CUR 1
894 // Set to 1 to compile in wxPalette class
895 #define wxUSE_PALETTE 1
897 // ----------------------------------------------------------------------------
898 // Windows-only settings
899 // ----------------------------------------------------------------------------
901 // Set this to 1 if you want to use wxWidgets and MFC in the same program. This
902 // will override some other settings (see below)
906 // Recommended setting: 0 unless you really have to use MFC
909 // Set this to 1 for generic OLE support: this is required for drag-and-drop,
910 // clipboard, OLE Automation. Only set it to 0 if your compiler is very old and
911 // can't compile/doesn't have the OLE headers.
915 // Recommended setting: 1
918 // Set this to 1 to use Microsoft CTL3D library for "3D-look" under Win16 or NT
919 // 3.x. This setting is ignored under Win9x and NT 4.0+.
921 // Default is 0 for (most) Win32 (systems), 1 for Win16
923 // Recommended setting: same as default
924 #if defined(__WIN95__)
925 #define wxUSE_CTL3D 0
927 #define wxUSE_CTL3D 1
930 // Set to 0 to disable PostScript print/preview architecture code under Windows
931 // (just use Windows printing).
932 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 0
934 // Set this to 1 to use RICHEDIT controls for wxTextCtrl with style wxTE_RICH
935 // which allows to put more than ~32Kb of text in it even under Win9x (NT
936 // doesn't have such limitation).
938 // Default is 1 for compilers which support it
940 // Recommended setting: 1, only set it to 0 if your compiler doesn't have
941 // or can't compile <richedit.h>
942 #if defined(__WIN95__) && !defined(__WINE__) && !defined(__GNUWIN32_OLD__)
943 #define wxUSE_RICHEDIT 1
945 // TODO: This should be ifdef'ed for any compilers that don't support
946 // RichEdit 2.0 but do have RichEdit 1.0...
947 #define wxUSE_RICHEDIT2 1
950 #define wxUSE_RICHEDIT 0
951 #define wxUSE_RICHEDIT2 0
954 // Set this to 1 to enable support for the owner-drawn menu and listboxes. This
955 // is required by wxUSE_CHECKLISTBOX.
959 // Recommended setting: 1, set to 0 for a small library size reduction
960 #define wxUSE_OWNER_DRAWN 0
962 // ----------------------------------------------------------------------------
964 // ----------------------------------------------------------------------------
966 // NB: all settings in this section are obsolete and should not be used/changed
967 // at all, they will disappear
969 // Define 1 to use bitmap messages.
970 #define wxUSE_BITMAP_MESSAGE 1
972 // If 1, enables provision of run-time type information.
973 // NOW MANDATORY: don't change.
974 #define wxUSE_DYNAMIC_CLASSES 1
976 // ----------------------------------------------------------------------------
977 // disable the settings which don't work for some compilers
978 // ----------------------------------------------------------------------------
980 #ifndef wxUSE_NORLANDER_HEADERS
981 #if (defined(__MINGW32__) || defined(__CYGWIN__)) && ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))
982 # define wxUSE_NORLANDER_HEADERS 1
984 # define wxUSE_NORLANDER_HEADERS 0
988 #if defined(__GNUWIN32__)
989 // These don't work as expected for mingw32 and cygwin32
990 #undef wxUSE_MEMORY_TRACING
991 #define wxUSE_MEMORY_TRACING 0
993 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
994 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
996 #undef wxUSE_DEBUG_NEW_ALWAYS
997 #define wxUSE_DEBUG_NEW_ALWAYS 0
999 // Cygwin betas don't have wcslen
1000 #if defined(__CYGWIN__) || defined(__CYGWIN32__)
1001 # if ! ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))
1002 # undef wxUSE_WCHAR_T
1003 # define wxUSE_WCHAR_T 0
1007 #endif // __GNUWIN32__
1009 // MFC duplicates these operators
1011 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
1012 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
1014 #undef wxUSE_DEBUG_NEW_ALWAYS
1015 #define wxUSE_DEBUG_NEW_ALWAYS 0
1018 #if (!defined(WIN32) && !defined(__WIN32__)) || (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS)
1019 // Can't use OLE drag and drop in Windows 3.1 because we don't know how
1020 // to implement UUIDs
1021 // GnuWin32 doesn't have appropriate headers for e.g. IUnknown.
1022 #undef wxUSE_DRAG_AND_DROP
1023 #define wxUSE_DRAG_AND_DROP 0
1026 // Only WIN32 supports wxStatusBar95
1027 #if !defined(__WIN32__) && wxUSE_NATIVE_STATUSBAR
1028 #undef wxUSE_NATIVE_STATUSBAR
1029 #define wxUSE_NATIVE_STATUSBAR 0
1032 #if !wxUSE_OWNER_DRAWN
1033 #undef wxUSE_CHECKLISTBOX
1034 #define wxUSE_CHECKLISTBOX 0
1037 // Salford C++ doesn't like some of the memory operator definitions
1039 #undef wxUSE_MEMORY_TRACING
1040 #define wxUSE_MEMORY_TRACING 0
1042 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
1043 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
1045 #undef wxUSE_DEBUG_NEW_ALWAYS
1046 #define wxUSE_DEBUG_NEW_ALWAYS 0
1048 #undef wxUSE_THREADS
1049 #define wxUSE_THREADS 0
1051 #undef wxUSE_OWNER_DRAWN
1052 #define wxUSE_OWNER_DRAWN 0
1053 #endif // __SALFORDC__
1055 // BC++/Win16 can't cope with the amount of data in resource.cpp
1056 #if defined(__WIN16__) && defined(__BORLANDC__)
1057 #undef wxUSE_WX_RESOURCES
1058 #define wxUSE_WX_RESOURCES 0
1061 #define wxUSE_ODBC 0
1063 #undef wxUSE_NEW_GRID
1064 #define wxUSE_NEW_GRID 0
1067 #if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
1068 // BC++ 4.0 can't compile JPEG library
1069 #undef wxUSE_LIBJPEG
1070 #define wxUSE_LIBJPEG 0
1073 // wxUSE_DEBUG_NEW_ALWAYS = 1 not compatible with BC++ in DLL mode
1074 #if defined(__BORLANDC__) && (defined(WXMAKINGDLL) || defined(WXUSINGDLL))
1075 #undef wxUSE_DEBUG_NEW_ALWAYS
1076 #define wxUSE_DEBUG_NEW_ALWAYS 0
1079 #if defined(__WXMSW__) && defined(__WATCOMC__)
1081 #undef wxUSE_GLCANVAS
1082 #define wxUSE_GLCANVAS 0
1085 #undef wxUSE_WCHAR_T
1086 #define wxUSE_WCHAR_T 0
1089 #if defined(__WXMSW__) && !defined(__WIN32__)
1091 #undef wxUSE_SOCKETS
1092 #define wxUSE_SOCKETS 0
1094 #undef wxUSE_THREADS
1095 #define wxUSE_THREADS 0
1097 #undef wxUSE_TOOLTIPS
1098 #define wxUSE_TOOLTIPS 0
1100 #undef wxUSE_SPINCTRL
1101 #define wxUSE_SPINCTRL 0
1103 #undef wxUSE_SPINBTN
1104 #define wxUSE_SPINBTN 0
1107 #define wxUSE_LIBPNG 0
1109 #undef wxUSE_LIBJPEG
1110 #define wxUSE_LIBJPEG 0
1112 #undef wxUSE_LIBTIFF
1113 #define wxUSE_LIBTIFF 0
1124 #undef wxUSE_GLCANVAS
1125 #define wxUSE_GLCANVAS 0
1127 #undef wxUSE_MS_HTML_HELP
1128 #define wxUSE_MS_HTML_HELP 0
1130 #undef wxUSE_WCHAR_T
1131 #define wxUSE_WCHAR_T 0
1135 // ----------------------------------------------------------------------------
1136 // undef the things which don't make sense for wxBase build
1137 // ----------------------------------------------------------------------------
1142 #define wxUSE_HTML 0
1144 #endif // !wxUSE_GUI
1146 // ----------------------------------------------------------------------------
1147 // check the settings consistency: do it here to abort compilation immediately
1148 // and not almost in the very end when the relevant file fails to compile and
1149 // you need to modify setup.h and rebuild everything
1150 // ----------------------------------------------------------------------------
1152 #if wxUSE_DATETIME && !wxUSE_LONGLONG
1153 #error wxDateTime requires wxLongLong
1156 #if wxUSE_TEXTFILE && !wxUSE_FILE
1157 #error You cannot compile wxTextFile without wxFile
1160 #if wxUSE_FILESYSTEM && !wxUSE_STREAMS
1161 #error You cannot compile virtual file systems without wxUSE_STREAMS
1164 #if wxUSE_HTML && !wxUSE_FILESYSTEM
1165 #error You cannot compile wxHTML without virtual file systems
1168 // add more tests here...