Help Center

CWebView2.RemoveGotFocusmethod

Removes an event handler previously added with AddGotFocus.

WebViewmethoddocumented

Syntax

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

Parameters

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

Description

Adds/removes an event handler for the GotFocus event.

Reference

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