Поделиться через


CHtmlView::OnNavigateError

Called by the framework if navigation to a hyperlink fails.

virtual void OnNavigateError(
   LPCTSTR lpszURL,
   LPCTSTR lpszFrame,
   DWORD dwError,
   BOOL *pbCancel
);

Параметры

  • lpszURL
    The URL for which navigation failed.

  • lpszFrame
    The name of the frame in which the resource is to be displayed, or NULL if no named frame was targeted for the resource.

  • dwError
    An error status code, if available. For a list of the possible HRESULT and HTTP status codes, see NavigateError Event Status Codes.

  • pbCancel
    Specifies whether to cancel the navigation to an error page or any further autosearch. If TRUE (the default), continue with navigation to an error page or autosearch; if FALSE, cancel navigation to an error page or autosearch.

Заметки

Override this method to provide custom navigation error handling.

For more information, see DWebBrowserEvents2::NavigateError

Требования

Header: afxhtml.h

См. также

Основные понятия

CHtmlView Class

CHtmlView Members

Hierarchy Chart