Help Center

CWebView2.SetParentWindowmethod

Sets the parent window for the WebView.

WebViewmethoddocumented

Syntax

FUNCTION SetParentWindow (BYVAL parentWindow AS HWND) AS HRESULT

Parameters

NameDescription
parentWindow[in] The handle of the parent window.

Description

Set the parent window for the WebView.

Remarks

This will cause the WebView to reparent its window to the newly provided window.

Reference

  • Defined in AfxNova/CWebView2.inc:863
  • Documented in WebView/CWebWiew2 Class.md
  • Topic: CWebView2 Class