diff --git a/include/wx/msw/chkconf.h b/include/wx/msw/chkconf.h index 5643870029..90518a77ae 100644 --- a/include/wx/msw/chkconf.h +++ b/include/wx/msw/chkconf.h @@ -408,6 +408,14 @@ # 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 @@ -421,6 +429,18 @@ # 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 diff --git a/include/wx/msw/webviewie.h b/include/wx/msw/webviewie.h index c0045b43a8..f3954c2eaa 100644 --- a/include/wx/msw/webviewie.h +++ b/include/wx/msw/webviewie.h @@ -19,17 +19,6 @@ #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: