The CancelNavigation method cancels any current or
pending navigations.
Parameters
None.
Return Value
If the method succeeds, the return value is non-zero. If the method
fails, the return value is zero. To get extended error information, call
GetLastError.
Remarks
This method can be safely called at any time, but only has an
effect if the browser is currently in the process of navigating to a
new location. A canceled navigation will fire the
WEBVIEW_EVENT_NAVIGATION_COMPLETED event and the event
handler's wParam value will be FALSE. The navigation status
will also include the WEBVIEW_STATUS_NAVIGATION_CANCELED
bitflag which can be used to distinguish between a navigation that
was canceled and one that failed for another reason.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: cshtmv12.lib
See Also
|