From a678579659354f7392e65e8b7f3728ec589a9a43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Wed, 20 Nov 2024 20:58:36 +0800 Subject: [PATCH] . --- cpp/winsharedutils/webview2_extra.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpp/winsharedutils/webview2_extra.cpp b/cpp/winsharedutils/webview2_extra.cpp index 33af0078..b5c0261f 100644 --- a/cpp/winsharedutils/webview2_extra.cpp +++ b/cpp/winsharedutils/webview2_extra.cpp @@ -187,11 +187,14 @@ DECLARE_API void *add_WebMessageReceived(void *m_host, void (*callback)(const wc return NULL; #endif } + +#ifndef WINXP struct contextcallbackdatas { EventRegistrationToken contextMenuRequestedToken; std::wstring label; }; +#endif // https://learn.microsoft.com/zh-cn/microsoft-edge/webview2/how-to/context-menus?tabs=cpp // https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_11?view=webview2-1.0.2849.39 DECLARE_API void *add_ContextMenuRequested(void *m_host, int index, const wchar_t *label, void (*callback)(const wchar_t *))