2.2.6.9.7 DhtmlControl::Navigate


Version

Minimum Origin Version Required: Origin 9.1 SR0

Description

Navigates to the URL

Syntax

BOOL Navigate(LPCTSTR lpcszURL, LPCTSTR lpcszHeader = NULL, LPVOID lpPostData = NULL, DWORD dwPostDataLen = 0)

Parameters

lpcszURL
[input]A pointer to a string containing the URL to be targeted.
lpcszHeader
[input]A pointer to a value that specifies the HTTP headers to send to the server. These headers are added to the default Internet Explorer headers. The headers can specify such information as the action required of the server, the type of data being passed to the server, or a status code. This parameter is ignored if the URL is not an HTTP URL.
lpPostData
[input]A pointer to the data to send with the HTTP POST transaction. This parameter is ignored if the URL is not an HTTP URL.
dwPostDataLen
[input]Data to send with the HTTP POST transaction. This parameter is ignored if the URL is not an HTTP URL.

Return

Returns TRUE on success, FALSE on failure.

Examples

EX1

void Navigate_ex1(DhtmlControl& dhtmlctrl)
{
    dhtmlctrl.Navigate("http://www.originlab.com");
}

Remark

See Also

Header to Included

Control.h