SetFocus
Ulrich Czekalla
ulrich.czekalla at utoronto.ca
Tue Apr 27 18:16:11 CDT 2004
ChangeLog:
Ulrich Czekalla <ulrich at codeweavers.com>
Trying to set focus to an invisible window should fail
-------------- next part --------------
Index: dlls/user/focus.c
===================================================================
RCS file: /home/wine/wine/dlls/user/focus.c,v
retrieving revision 1.10
diff -u -w -r1.10 focus.c
--- dlls/user/focus.c 27 Jan 2004 20:11:23 -0000 1.10
+++ dlls/user/focus.c 27 Apr 2004 19:44:09 -0000
@@ -261,7 +261,8 @@
{
HWND parent;
LONG style = GetWindowLongW( hwndTop, GWL_STYLE );
- if (style & (WS_MINIMIZE | WS_DISABLED)) return 0;
+ if ((style & (WS_MINIMIZE | WS_DISABLED)) ||
+ (~style & WS_VISIBLE)) return 0;
parent = GetAncestor( hwndTop, GA_PARENT );
if (!parent || parent == GetDesktopWindow()) break;
hwndTop = parent;
More information about the wine-patches
mailing list