Help Center

CWebView2.AddScriptDialogOpeningmethod

Add an event handler for the ScriptDialogOpening event.

WebViewmethoddocumented

Syntax

FUNCTION AddScriptDialogOpening ( BYVAL eventHandler AS Afx_ICoreWebView2ScriptDialogOpeningEventHandler PTR, BYVAL token AS EventRegistrationToken PTR) AS HRESULT
FUNCTION AddScriptDialogOpening ( BYVAL eventHandler AS Afx_ICoreWebView2ScriptDialogOpeningEventHandler PTR, BYVAL token AS EventRegistrationToken PTR) AS HRESULT
Also documented as RemoveScriptDialogOpening — one description covers them all.

Parameters

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

Description

Adds/removes an event handler for the ScriptDialogOpening event.

Reference

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