void CBCGPIE7DemoView::OnDocumentComplete(LPCTSTR lpszURL) { // make sure the main frame has the new URL. This call also stops the animation ((CMainFrame*)AfxGetMainWnd())->SetAddress(lpszURL); CBCGPIE7DemoDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); CHistoryObj* pObj = pDoc->AddURLToHistory (GetLocationName (), lpszURL); if (pObj != NULL) { theApp.m_History.Add (*pObj); // TODO: update history bar } ((CMainFrame*)AfxGetMainWnd())->SetProgress (0, -1); COleVariant var(0l); ExecWB(OLECMDID_ZOOM, OLECMDEXECOPT_DONTPROMPTUSER, NULL, &var); m_nFontSize = max(min(var.lVal, 4l), 0l); CHtmlView::OnDocumentComplete(lpszURL); }
void CIEDemoView::OnDocumentComplete(LPCTSTR lpszURL) { // make sure the main frame has the new URL. This call also stops the animation ((CMainFrame*)GetParentFrame())->SetAddress(lpszURL); CIEDemoDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); pDoc->AddURLToHistory (GetLocationName (), lpszURL); ((CMainFrame*)GetParentFrame())->SetProgress (0, -1); CHtmlView::OnDocumentComplete(lpszURL); }