CWebView::GoForward Method  
 
BOOL GoForward();

The GoForward method navigates forwards through the browser history.

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

The GoForward method navigates the browser to the next page in its session history, if one is available. This is equivalent to selecting the Forward button in a standard web browser.

If there is no forward entry in the history list, the method will succeed but no navigation will occur. The availability of forward navigation can be determined by handling the WEBVIEW_EVENT_HISTORY_CHANGED event and checking for the WEBVIEW_MOVE_FORWARD_ENABLED flag.

Calling ClearHistory will remove the session history for the browser instance. After the history has been cleared, calling GoForward will have no effect until new pages have been visited.

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