Work started on editor support.

This commit is contained in:
Storm Dragon committed 2026-10-09 15:57:45 -04:00
1 parent 0992ffee0d
commit 6f6d4040c4
9 files changed
+401 -5

No files matched your search

+2
View File
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "menu_bridge.h"
#include "edit_hook.h"
static void menu_text(WCHAR *output, UINT capacity, const WCHAR *input) {
UINT used = 0;
@@ -19,6 +20,7 @@ __declspec(dllexport) LRESULT CALLBACK WineAccessMenuHook(int code, WPARAM wp,
LPARAM lp) {
if (code >= 0) {
const CWPSTRUCT *message = (const CWPSTRUCT *)lp;
if (message->message == WM_SETFOCUS) wine_access_watch_edit(message->hwnd);
if (message->message == WM_MENUSELECT || message->message == WM_EXITMENULOOP) {
HWND bridge = FindWindowW(WINE_ACCESS_MENU_CLASS, NULL);
HWND owner = GetAncestor(message->hwnd, GA_ROOT);