重载这个函数,当下载完毕后会调用这个函数。
CHtmlView::OnNavigateComplete2
virtual void OnNavigateComplete2( LPCTSTR strURL );ParametersstrURLA string expression that evaluates to the URL, UNC file name, or PIDL (a pointer to an item identifier list) that was navigated to. ResThis member function is called by the framework after a navigation to a hyperlink completes (on either a window or frameset element). The URL parameter can be a PIDL in the case of a shell name space entity for which there is no URL representation. Note that the URL contained in strURL can be different from the URL that the browser was told to navigate to, because this URL is the canonicalized and qualified URL. For example, if an application specifies a URL of "www.microsoft.com" in a call to Navigate or Navigate2, the URL passed by OnNavigateComplete2 will be "http://www.microsoft.com/". Also, if the server has redirected the browser to a different URL, the redirected URL will be reflected here.CHtmlView Overview |  Class Members |  Hierarchy ChartSee Also   DWebBrowserEvents2::NavigateComplete2