Help Center

CWebView2.RemoveWindowCloseRequestedmethod

Remove an event handler previously added with AddWindowCloseRequested.

WebViewmethoddocumented

Syntax

FUNCTION RemoveWindowCloseRequested (BYVAL token AS EventRegistrationToken) AS HRESULT
Also documented as AddWindowCloseRequested — one description covers them all.

Parameters

NameDescription
eventHandlerPointer to an ICoreWebView2WindowCloseRequestedEventHandler.
tokenToken that uniquely identifies the subscription.

Description

Adds/removes an event handler for the WindowCloseRequested event.

Reference

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