共用方式為


CDHtmlDialog::OnBeforeNavigate

Called by the framework to cause an event to fire before a navigation occurs.

virtual void OnBeforeNavigate( 
   LPDISPATCH pDisp, 
   LPCTSTR szUrl  
);

Parameters

  • pDisp
    A pointer to an IDispatch object.

  • szUrl
    A pointer to a string containing the URL to navigate to.

Requirements

Header: afxdhtml.h

See Also

Reference

CDHtmlDialog Class

Hierarchy Chart

CDHtmlDialog::OnNavigateComplete