#           define wxUSE_MEDIACTRL 0
 #       endif
 #   endif
+#    if wxUSE_WEB
+#       ifdef wxABORT_ON_CONFIG_ERROR
+#           error "wxWebView requires wxActiveXContainer under MSW"
+#       else
+#           undef wxUSE_WEB
+#           define wxUSE_WEB 0
+#       endif
+#   endif
 #endif /* !wxUSE_ACTIVEX */
 
 #if !wxUSE_THREADS
 #   endif
 #endif /* !wxUSE_THREADS */
 
+
+#if !wxUSE_OLE_AUTOMATION
+#    if wxUSE_WEB
+#       ifdef wxABORT_ON_CONFIG_ERROR
+#           error "wxWebView requires wxUSE_OLE_AUTOMATION under MSW"
+#       else
+#           undef wxUSE_WEB
+#           define wxUSE_WEB 0
+#       endif
+#   endif
+#endif /* !wxUSE_OLE_AUTOMATION */
+
 #if defined(__WXUNIVERSAL__) && wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW && !wxUSE_POSTSCRIPT
 #   undef wxUSE_POSTSCRIPT
 #   define wxUSE_POSTSCRIPT 1
 
 #include "wx/msw/ole/automtn.h"
 #include "wx/msw/ole/activex.h"
 
-// TODO: move this to wx/msw/chkconf.h
-#if wxUSE_ACTIVEX != 1
-#error "wxUSE_ACTIVEX must be activated for this to work"
-#endif
-
-#if wxUSE_OLE_AUTOMATION != 1
-#error "wxUSE_OLE_AUTOMATION must be activated for this to work"
-#endif
-
-// FIXME: get those DLL export macros right...
-
 class WXDLLIMPEXP_WEB wxWebViewIE : public wxWebView
 {
 public: