X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8bf57c4f2eebf2d2988d6f573066164bcbaabe64..8ea92b4d7792987769774ac381685dae15c70454:/include/wx/msw/setup0.h diff --git a/include/wx/msw/setup0.h b/include/wx/msw/setup0.h index eac70a3750..42e599b68b 100644 --- a/include/wx/msw/setup0.h +++ b/include/wx/msw/setup0.h @@ -12,6 +12,8 @@ #ifndef _WX_SETUP_H_ #define _WX_SETUP_H_ +/* --- start common options --- */ + // ---------------------------------------------------------------------------- // global settings // ---------------------------------------------------------------------------- @@ -44,14 +46,6 @@ // Recommended setting: 0 (please update your code) #define WXWIN_COMPATIBILITY_2_4 1 -// Define as 1 for font size to be backward compatible to 1.63 and earlier. -// 1.64 and later define point sizes to be compatible with Windows. -// -// Default is 0 -// -// Recommended setting: 0 -#define wxFONT_SIZE_COMPATIBILITY 0 - // Set to 0 for accurate dialog units, else 1 to be as per 2.1.16 and before. // If migrating between versions, your dialogs may seem to shrink. // @@ -133,6 +127,15 @@ #define wxUSE_ON_FATAL_EXCEPTION 0 #endif +// Set this to 1 to be able to generate a human-readable (unlike +// machine-readable minidumop created by wxCrashReport::Generate()) stack back +// trace when your program crashes using wxStackWalker +// +// Default is 1 if supported by the compiler. +// +// Recommended setting: 1, set to 0 if your programs never crash +#define wxUSE_STACKWALKER 1 + // ---------------------------------------------------------------------------- // Unicode support // ---------------------------------------------------------------------------- @@ -199,14 +202,9 @@ // // Default is 0 // -// Recommended setting: 0 +// Recommended setting: 0 (this is still work in progress...) #define wxUSE_EXTENDED_RTTI 0 -#if defined(__BORLANDC__) -#undef wxUSE_EXTENDED_RTTI -#define wxUSE_EXTENDED_RTTI 1 -#endif - // Set wxUSE_STL to 1 to derive wxList(Foo) and wxArray(Foo) from // std::list and std::vector, with a compatibility interface, // and for wxHashMap to be implemented with templates. @@ -543,6 +541,7 @@ #define wxUSE_CHECKLISTBOX 1 // wxCheckListBox (requires wxUSE_OWNER_DRAWN) #define wxUSE_CHOICE 1 // wxChoice #define wxUSE_COMBOBOX 1 // wxComboBox +#define wxUSE_DATEPICKCTRL 1 // wxDatePickerCtrl #define wxUSE_GAUGE 1 // wxGauge #define wxUSE_LISTBOX 1 // wxListBox #define wxUSE_LISTCTRL 1 // wxListCtrl @@ -572,10 +571,14 @@ // or the wrapper around native control. For native look and feel the native // version should be used. // -// Default is 1. +// Default is 1 for the platforms where native status bar is supported. // // Recommended setting: 1 (there is no advantage in using the generic one) +#if defined(__WXMSW__) || defined(__WXMAC__) #define wxUSE_NATIVE_STATUSBAR 1 +#else +#define wxUSE_NATIVE_STATUSBAR 0 +#endif // wxToolBar related settings: if wxUSE_TOOLBAR is 0, don't compile any toolbar // classes at all. Otherwise, use the native toolbar class unless @@ -623,12 +626,20 @@ // wxGrid class // -// Default is 1 for both options. +// Default is 1, set to 0 to cut down compilation time and binaries size if you +// don't use it. // // Recommended setting: 1 // #define wxUSE_GRID 1 +// wxMiniFrame class: a frame with narrow title bar +// +// Default is 1. +// +// Recommended setting: 1 (it doesn't cost almost anything) +#define wxUSE_MINIFRAME 1 + // ---------------------------------------------------------------------------- // Miscellaneous GUI stuff // ---------------------------------------------------------------------------- @@ -698,16 +709,6 @@ // wxValidator class and related methods #define wxUSE_VALIDATORS 1 -// wxDC cacheing implementation -#define wxUSE_DC_CACHEING 1 - -// Set this to 1 to enable the use of DIB's for wxBitmap to support -// bitmaps > 16MB on Win95/98/Me. Set to 0 to use DDB's only. -#define wxUSE_DIB_FOR_BITMAP 0 - -// Set this to 1 to enable wxDIB -#define wxUSE_WXDIB 1 - // ---------------------------------------------------------------------------- // common dialogs // ---------------------------------------------------------------------------- @@ -916,7 +917,7 @@ // Use wxHTML-based help controller? #define wxUSE_WXHTML_HELP 1 -#define wxUSE_RESOURCES 1 +#define wxUSE_RESOURCES 0 // 0 for no wxGetResource/wxWriteResource #define wxUSE_CONSTRAINTS 1 // 0 for no window layout constraint system @@ -1031,6 +1032,8 @@ // Set to 1 to compile in wxPalette class #define wxUSE_PALETTE 1 +/* --- end common options --- */ + // ---------------------------------------------------------------------------- // Windows-only settings // ---------------------------------------------------------------------------- @@ -1052,17 +1055,15 @@ // Recommended setting: 1 #define wxUSE_OLE 1 -// Set this to 1 to use Microsoft CTL3D library for "3D-look" under Win16 or NT -// 3.x. This setting is ignored under Win9x and NT 4.0+. -// -// Default is 0 for (most) Win32 (systems), 1 for Win16 -// -// Recommended setting: same as default -#if defined(__WIN95__) -#define wxUSE_CTL3D 0 -#else -#define wxUSE_CTL3D 1 -#endif +// wxDC cacheing implementation +#define wxUSE_DC_CACHEING 1 + +// Set this to 1 to enable the use of DIB's for wxBitmap to support +// bitmaps > 16MB on Win95/98/Me. Set to 0 to use DDB's only. +#define wxUSE_DIB_FOR_BITMAP 0 + +// Set this to 1 to enable wxDIB +#define wxUSE_WXDIB 1 // Define as 1 to use Microsoft's ItsyBitsy small title bar library, for // wxMiniFrame. This setting is only used for Win3.1; Win9x and NT use native @@ -1107,6 +1108,18 @@ // (notably, wxNotebook pages) #define wxUSE_UXTHEME_AUTO 1 +// ---------------------------------------------------------------------------- +// Crash debugging helpers +// ---------------------------------------------------------------------------- + +// Set this to 1 to be able to use wxCrashReport::Generate() to create mini +// dumps of your program when it crashes (or at any other moment) +// +// Default is 1 if supported by the compiler. +// +// Recommended setting: 1, set to 0 if your programs never crash +#define wxUSE_CRASHREPORT 1 + // ---------------------------------------------------------------------------- // obsolete settings // ---------------------------------------------------------------------------- @@ -1120,9 +1133,5 @@ // Define 1 to use bitmap messages. #define wxUSE_BITMAP_MESSAGE 1 -// If 1, enables provision of run-time type information. -// NOW MANDATORY: don't change. -#define wxUSE_DYNAMIC_CLASSES 1 +#endif // _WX_SETUP_H_ -#endif - // _WX_SETUP_H_