interface ICoreWebView2ExperimentalCompositionController2
Note
This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.
Note
This an experimental API that is shipped with our prerelease SDK. See WebView2 release notes.
interface ICoreWebView2ExperimentalCompositionController2
: public IUnknown
This interface is continuation of the ICoreWebView2ExperimentalCompositionController interface.
Summary
Members | Descriptions |
---|---|
get_SystemCursorId | The current system cursor ID reported by the underlying rendering engine for WebView. |
Members
get_SystemCursorId
The current system cursor ID reported by the underlying rendering engine for WebView.
public HRESULT get_SystemCursorId(UINT32 * systemCursorId)
For example, most of the time, when the cursor is over text, this will return the int value for IDC_IBEAM. The systemCursorId is only valid if the rendering engine reports a default Windows cursor resource value. Navigate to LoadCursorW for more details. Otherwise, if custom CSS cursors are being used, this will return 0. To actually use systemCursorId in LoadCursor or LoadImage, MAKEINTRESOURCE must be called on it first.
UINT32 cursorId;
wil::com_ptr<ICoreWebView2ExperimentalCompositionController2> compositionController2 =
m_controller.query<ICoreWebView2ExperimentalCompositionController2>();
CHECK_FAILURE(compositionController2->get_SystemCursorId(&cursorId));
cursor = ::LoadCursor(nullptr, MAKEINTRESOURCE(cursorId));
if (cursor == nullptr)
{
hr = HRESULT_FROM_WIN32(GetLastError());
}
Обратная связь
https://aka.ms/ContentUserFeedback.
Ожидается в ближайшее время: в течение 2024 года мы постепенно откажемся от GitHub Issues как механизма обратной связи для контента и заменим его новой системой обратной связи. Дополнительные сведения см. в разделеОтправить и просмотреть отзыв по