CWebView2.AddWindowCloseRequestedmethod
Add an event handler for the WindowCloseRequested event.
Syntax
FUNCTION AddWindowCloseRequested ( BYVAL eventHandler AS Afx_ICoreWebView2WindowCloseRequestedEventHandler PTR, BYVAL token AS EventRegistrationToken PTR) AS HRESULT
Also documented as
RemoveWindowCloseRequested — one description covers them all.Parameters
| Name | Description | |
|---|---|---|
eventHandler | Pointer to an ICoreWebView2WindowCloseRequestedEventHandler. | |
token | Token that uniquely identifies the subscription. |
Description
Adds/removes an event handler for the WindowCloseRequested event.
Reference
- Defined in AfxNova/CWebView2.inc:1488
- Documented in WebView/CWebWiew2 Class.md
- Topic: CWebView2 Class