Added code to prevent navigating to the default page, except when in design mode.
git-svn-id: svn://10.0.0.236/trunk@30690 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -125,9 +125,16 @@ LRESULT CMozillaBrowser::OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL&
|
||||
// Load browser helpers
|
||||
LoadBrowserHelpers();
|
||||
|
||||
// Browse to a default page
|
||||
USES_CONVERSION;
|
||||
Navigate(A2OLE(c_szDefaultPage.c_str()), NULL, NULL, NULL, NULL);
|
||||
// Browse to a default page - if in design mode
|
||||
BOOL bUserMode = FALSE;
|
||||
if (SUCCEEDED(GetAmbientUserMode(bUserMode)))
|
||||
{
|
||||
if (!bUserMode)
|
||||
{
|
||||
USES_CONVERSION;
|
||||
Navigate(A2OLE(c_szDefaultPage.c_str()), NULL, NULL, NULL, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user