From: Robin Dunn Date: Tue, 23 Mar 2004 06:06:23 +0000 (+0000) Subject: Need to navigate to "about:blank" in order for the internal docuemnt X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/83cbb9e995edca4f729aab005df43f23be8f3261 Need to navigate to "about:blank" in order for the internal docuemnt to be created, which has to be done in order for LoadString to work, so do it at the start. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/contrib/activex/activex.i b/wxPython/contrib/activex/activex.i index d4288437d8..426115880a 100644 --- a/wxPython/contrib/activex/activex.i +++ b/wxPython/contrib/activex/activex.i @@ -829,7 +829,18 @@ public: // Get IWebBrowser2 Interface hret = m_webBrowser.QueryInterface(IID_IWebBrowser2, m_ActiveX); - wxASSERT(SUCCEEDED(hret)); + wxASSERT(SUCCEEDED(hret)); + + // web browser setup + m_webBrowser->put_MenuBar(VARIANT_FALSE); + m_webBrowser->put_AddressBar(VARIANT_FALSE); + m_webBrowser->put_StatusBar(VARIANT_FALSE); + m_webBrowser->put_ToolBar(VARIANT_FALSE); + + m_webBrowser->put_RegisterAsBrowser(VARIANT_TRUE); + m_webBrowser->put_RegisterAsDropTarget(VARIANT_TRUE); + + m_webBrowser->Navigate( L"about:blank", NULL, NULL, NULL, NULL ); } diff --git a/wxPython/contrib/activex/activex_wrap.cpp b/wxPython/contrib/activex/activex_wrap.cpp index 08a5b1b4dd..f29fe40d8f 100644 --- a/wxPython/contrib/activex/activex_wrap.cpp +++ b/wxPython/contrib/activex/activex_wrap.cpp @@ -921,7 +921,18 @@ public: // Get IWebBrowser2 Interface hret = m_webBrowser.QueryInterface(IID_IWebBrowser2, m_ActiveX); - wxASSERT(SUCCEEDED(hret)); + wxASSERT(SUCCEEDED(hret)); + + // web browser setup + m_webBrowser->put_MenuBar(VARIANT_FALSE); + m_webBrowser->put_AddressBar(VARIANT_FALSE); + m_webBrowser->put_StatusBar(VARIANT_FALSE); + m_webBrowser->put_ToolBar(VARIANT_FALSE); + + m_webBrowser->put_RegisterAsBrowser(VARIANT_TRUE); + m_webBrowser->put_RegisterAsDropTarget(VARIANT_TRUE); + + m_webBrowser->Navigate( L"about:blank", NULL, NULL, NULL, NULL ); }