共用方式為


CDHtmlDialog::Navigate

Navigates to the resource identified by the URL that is specified by lpszURL.

void Navigate(
   LPCTSTR lpszURL,
   DWORD dwFlags = 0,
   LPCTSTR lpszTargetFrameName = NULL,
   LPCTSTR lpszHeaders = NULL,
    LPVOID lpvPostData = NULL,
   DWORD dwPostDataLen = 0 
);

Parameters

  • lpszURL
    A pointer to a string containing the URL to be targeted.

  • dwFlags
    The flags of a variable that specifies whether to add the resource to the history list, whether to read to the cache or write from the cache, and whether to display the resource in a new window. The variable can be a combination of the values defined by the BrowserNavConstants enumeration.

  • lpszTargetFrameName
    A pointer to a string that contains the name of the frame in which to display the resource.

  • lpszHeaders
    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.

  • lpvPostData
    A pointer to the data to send with the HTTP POST transaction. For example, the POST transaction is used to send data gathered by an HTML form. If this parameter does not specify any post data, Navigate issues an HTTP GET transaction. This parameter is ignored if the URL is not an HTTP URL.

  • dwPostDataLen
    Data to send with the HTTP POST transaction. For example, the POST transaction is used to send data gathered by an HTML form. If this parameter does not specify any post data, Navigate issues an HTTP GET transaction. This parameter is ignored if URL is not an HTTP URL.

Requirements

Header: afxdhtml.h

See Also

Concepts

CDHtmlDialog Class

CDHtmlDialog Members

Hierarchy Chart