Help Center

CWebView2.AddContentLoadingmethod

Add an event handler for the ContentLoading event.

WebViewmethoddocumented

Syntax

FUNCTION AddContentLoading ( BYVAL eventHandler AS Afx_ICoreWebView2ContentLoadingEventHandler PTR, BYVAL token AS EventRegistrationToken PTR) AS HRESULT
Also documented as RemoveContentLoading — one description covers them all.

Parameters

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

Description

Adds/removes an event handler for the ContentLoading event.

Reference

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