X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cde23b64b5194f0d71cf16c85ea33d28419c815f..bcd286534a7d880de1b9156a87e6bf5df87f6573:/include/wx/os2/setup0.h?ds=sidebyside diff --git a/include/wx/os2/setup0.h b/include/wx/os2/setup0.h index 40186f83bb..8631562b17 100644 --- a/include/wx/os2/setup0.h +++ b/include/wx/os2/setup0.h @@ -666,11 +666,27 @@ // mingw32) you may need to install the headers (and just the headers) // yourself. If you do, change the setting below manually. // -// Recommended setting: 1 -#if !defined(__WXMSW__) || wxCHECK_VISUALC_VERSION(7) - #define wxUSE_GRAPHICS_CONTEXT 1 +// Recommended setting: 1 if supported by the compilation environment + +// notice that we can't use wxCHECK_VISUALC_VERSION() here as this file is +// included from wx/platform.h before wxCHECK_VISUALC_VERSION() is defined +#ifdef _MSC_VER +# if _MSC_VER >= 1310 + // MSVC7.1+ comes with new enough Platform SDK, enable + // wxGraphicsContext support for it +# define wxUSE_GRAPHICS_CONTEXT 1 +# else + // MSVC 6 didn't include GDI+ headers so disable by default, enable it + // here if you use MSVC 6 with a newer SDK +# define wxUSE_GRAPHICS_CONTEXT 0 +# endif #else - #define wxUSE_GRAPHICS_CONTEXT 0 + // Disable support for other Windows compilers, enable it if your compiler + // comes with new enough SDK or you installed the headers manually. + // + // Notice that this will be set by configure under non-Windows platforms + // anyhow so the value there is not important. +# define wxUSE_GRAPHICS_CONTEXT 0 #endif // ---------------------------------------------------------------------------- @@ -1067,6 +1083,13 @@ // use this function #define wxUSE_ABOUTDLG 1 +// wxFileHistory class +// +// Default is 1 +// +// Recommended setting: 1 +#define wxUSE_FILE_HISTORY 1 + // ---------------------------------------------------------------------------- // Metafiles support // ----------------------------------------------------------------------------