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; }