From 9ef101cd5548aacc4d921683d185b687cb7a6d35 Mon Sep 17 00:00:00 2001 From: Steve Lamerton Date: Wed, 29 Jun 2011 08:27:33 +0000 Subject: [PATCH] Add support for loading a url in the constructor to the ie backend and update the sample to use it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/web/web.cpp | 3 +-- src/msw/webview_ie.cpp | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/web/web.cpp b/samples/web/web.cpp index eb18e11abf..641ad7d8d0 100644 --- a/samples/web/web.cpp +++ b/samples/web/web.cpp @@ -153,8 +153,7 @@ WebFrame::WebFrame() : wxFrame(NULL, wxID_ANY, "wxWebView Sample") topsizer->Add(m_info, wxSizerFlags().Expand()); // Create the webview - m_browser = wxWebView::New(this, wxID_ANY); - m_browser->LoadUrl("http://www.wxwidgets.org"); + m_browser = wxWebView::New(this, wxID_ANY, "http://www.wxwidgets.org"); topsizer->Add(m_browser, wxSizerFlags().Expand().Proportion(1)); SetSizer(topsizer); diff --git a/src/msw/webview_ie.cpp b/src/msw/webview_ie.cpp index cb6500b0f7..29b0361f4d 100644 --- a/src/msw/webview_ie.cpp +++ b/src/msw/webview_ie.cpp @@ -112,6 +112,7 @@ bool wxWebViewIE::Create(wxWindow* parent, SetBackgroundStyle(wxBG_STYLE_PAINT); SetDoubleBuffered(true); + LoadUrl(url); return true; } -- 2.45.2