Add an event handler for the CursorChanged event.
The event is raised when WebView thinks the cursor should be changed. For
example, when the mouse cursor is currently the default cursor but is then
moved over text, it may try to change to the IBeam cursor.
It is expected for the developer to send
COREWEBVIEW2_MOUSE_EVENT_KIND_LEAVE messages (in addition to
COREWEBVIEW2_MOUSE_EVENT_KIND_MOVE messages) through the SendMouseInput
API. This is to ensure that the mouse is actually within the WebView that
sends out CursorChanged events.
Add an event handler for the CursorChanged event. The event is raised when WebView thinks the cursor should be changed. For example, when the mouse cursor is currently the default cursor but is then moved over text, it may try to change to the IBeam cursor.
It is expected for the developer to send COREWEBVIEW2_MOUSE_EVENT_KIND_LEAVE messages (in addition to COREWEBVIEW2_MOUSE_EVENT_KIND_MOVE messages) through the SendMouseInput API. This is to ensure that the mouse is actually within the WebView that sends out CursorChanged events.
\snippet ViewComponent.cpp CursorChanged