mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Added a default page to load when control is first created
This commit is contained in:
parent
01144f065b
commit
bec67ee8fd
@ -29,7 +29,7 @@ extern "C" void NS_SetupRegistry();
|
||||
|
||||
static const std::string c_szPrefsFile = "prefs.js";
|
||||
static const std::string c_szPrefsHomePage = "browser.startup.homepage";
|
||||
|
||||
static const std::string c_szDefaultPage = "resource://res/MozillaControl.html";
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CMozillaBrowser
|
||||
@ -93,6 +93,10 @@ LRESULT CMozillaBrowser::OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL&
|
||||
// Create the NGLayout WebShell
|
||||
CreateWebShell();
|
||||
|
||||
// Browse to a default page
|
||||
USES_CONVERSION;
|
||||
Navigate(A2OLE(c_szDefaultPage.c_str()), NULL, NULL, NULL, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user