Read Windows Forms login fields and associate their labels
This commit is contained in:
1 parent
d7ea005a1f
commit
25e38907d3
9 files changed
+149
-25
No files matched your search
+3
-1
@@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
#include "edit_hook.h"
|
||||
#include "menu_bridge.h"
|
||||
#include "control_class.h"
|
||||
#include <commctrl.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -186,7 +187,8 @@ static LRESULT CALLBACK edit_proc(HWND window, UINT message, WPARAM wp, LPARAM l
|
||||
|
||||
BOOL wine_access_watch_edit(HWND window) {
|
||||
WCHAR class_name[64];
|
||||
if (!window || !GetClassNameW(window, class_name, 64) || lstrcmpW(class_name, L"Edit")) return FALSE;
|
||||
if (!window || !GetClassNameW(window, class_name, 64) ||
|
||||
!wine_access_class_matches(class_name, L"Edit")) return FALSE;
|
||||
// Wine's comctl32 v5 exports GetWindowSubclass only by ordinal. Our own
|
||||
// property also keeps attachment independent of the application's manifest.
|
||||
if (GetPropW(window, EDIT_STATE_PROPERTY)) return FALSE;
|
||||
|
||||
Reference in new issue
Block a user