CWebView2.NavigateToStringmethod
Initiates a navigation to htmlContent as source HTML of a new document.
Syntax
FUNCTION NavigateToString (BYVAL htmlContent AS LPCWSTR) AS HRESULT
Parameters
| Name | Description | |
|---|---|---|
htmlContent | [in] The HTML content. |
Description
Initiates a navigation to htmlContent as source HTML of a new document.
Remarks
The htmlContent parameter may not be larger than 2 MB (2 * 1024 * 1024 bytes) in total size. The origin of the new page is about:blank.
This is needed for accessibility and certain dialogs in WebView to work correctly.
Reference
- Defined in AfxNova/CWebView2.inc:625
- Documented in WebView/CWebWiew2 Class.md
- Topic: CWebView2 Class