Condividi tramite


CHtmlView::OnNavigateComplete2

This member function is called by the framework after a navigation to a hyperlink completes (on either a window or frameset element).

virtual void OnNavigateComplete2(
   LPCTSTR strURL 
);

Parameters

  • strURL
    A string expression that evaluates to the URL, UNC file name, or PIDL (a pointer to an item identifier list) that was navigated to.

Remarks

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 "https://www.microsoft.com/". Also, if the server has redirected the browser to a different URL, the redirected URL will be reflected here.

Requirements

Header: afxhtml.h

See Also

Reference

CHtmlView Class

Hierarchy Chart

DWebBrowserEvents2::NavigateComplete2

Other Resources

CHtmlView Members