+# if wxUSE_OLE_AUTOMATION
+# ifdef wxABORT_ON_CONFIG_ERROR
+# error "wxAutomationObject requires wxUSE_OLE"
+# else
+# undef wxUSE_OLE_AUTOMATION
+# define wxUSE_OLE_AUTOMATION 0
+# endif
+# endif
+#endif /* !wxUSE_OLE */
+
+#if !wxUSE_ACTIVEX
+# if wxUSE_MEDIACTRL
+# ifdef wxABORT_ON_CONFIG_ERROR
+# error "wxMediaCtl requires wxActiveXContainer"
+# else
+# undef wxUSE_MEDIACTRL
+# define wxUSE_MEDIACTRL 0
+# endif
+# endif
+#endif /* !wxUSE_ACTIVEX */
+
+#if defined(__WXUNIVERSAL__) && wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW && !wxUSE_POSTSCRIPT
+# undef wxUSE_POSTSCRIPT
+# define wxUSE_POSTSCRIPT 1
+#endif
+
+/*
+ Currently MSVC can't build the library with new-style events:
+ - VC6 simply doesn't have good enough templates support
+ - VC7 always seems to choos the Connect() overload using Functor, even when
+ the argument is a class method
+ - VC9 compiles the code fine but fails at linking stage in DLL build
+ */
+#if !wxEVENTS_COMPATIBILITY_2_8
+# if defined(__VISUALC__)
+# undef wxEVENTS_COMPATIBILITY_2_8
+# define wxEVENTS_COMPATIBILITY_2_8 1
+# endif
+#endif
+
+#endif /* _WX_MSW_CHKCONF_H_ */