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:
mike%neoplanet.com
1999-05-07 14:18:23 +00:00
parent 24b4dda246
commit e8dae5bfd7

View File

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