]> git.saurik.com Git - wxWidgets.git/commitdiff
Add support for loading a url in the constructor to the ie backend and update the...
authorSteve Lamerton <steve.lamerton@gmail.com>
Wed, 29 Jun 2011 08:27:33 +0000 (08:27 +0000)
committerSteve Lamerton <steve.lamerton@gmail.com>
Wed, 29 Jun 2011 08:27:33 +0000 (08:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/web/web.cpp
src/msw/webview_ie.cpp

index eb18e11abf846f367fd2c711b83bab83a43c554b..641ad7d8d0dc212a81d4461beafbfea64607a37c 100644 (file)
@@ -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);
index cb6500b0f7252a2692467d0ff39f9d5feb0fe84f..29b0361f4d7f778b67ae608af8580f95964b6cda 100644 (file)
@@ -112,6 +112,7 @@ bool wxWebViewIE::Create(wxWindow* parent,
 
     SetBackgroundStyle(wxBG_STYLE_PAINT);
     SetDoubleBuffered(true);
+    LoadUrl(url);
     return true;
 }