Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
HIllya51 committed Nov 20, 2024
1 parent 60550d5 commit a678579
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cpp/winsharedutils/webview2_extra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 *))
Expand Down

0 comments on commit a678579

Please sign in to comment.