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
This commit is contained in:
Steve Lamerton 2011-06-29 08:27:33 +00:00
parent 0016bf1df1
commit 9ef101cd55
2 changed files with 2 additions and 2 deletions

View 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);

View File

@ -112,6 +112,7 @@ bool wxWebViewIE::Create(wxWindow* parent,
SetBackgroundStyle(wxBG_STYLE_PAINT);
SetDoubleBuffered(true);
LoadUrl(url);
return true;
}