winpos patch

Ove Kaaven ovek at arcticnet.no
Sun Mar 18 01:59:47 CST 2001


This is supposed to implement a small piece of documented win2000
behaviour: a window with both WS_EX_LAYERED and WS_EX_TRANSPARENT styles
lets mouse clicks go straight through the window without further checks.
(Is WindowFromPoint really the best place to add such code?)

If the window has only WS_EX_LAYERED without transparent, win2000 allows
color keying to define whether a part of the window is transparent (and
should let mouse clicks through), but I don't particularly want to
implement that at the moment, I just need the full-transparency version.

Log:
Win2000: If both WS_EX_LAYERED and WS_EX_TRANSPARENT styles are set, mouse
clicks should go straight through the window.

Index: windows/winpos.c
===================================================================
RCS file: /cvsroot/winex/wine/windows/winpos.c,v
retrieving revision 1.1.1.13
diff -u -r1.1.1.13 winpos.c
--- windows/winpos.c	2001/03/05 22:57:31	1.1.1.13
+++ windows/winpos.c	2001/03/18 07:48:27
@@ -478,6 +478,7 @@
             /* its children. Otherwise, go to the next window.       */
 
 	     if ((wndPtr->dwStyle & WS_VISIBLE) &&
+	        ((wndPtr->dwExStyle & (WS_EX_LAYERED | WS_EX_TRANSPARENT)) != (WS_EX_LAYERED | WS_EX_TRANSPARENT)) &&
                 (!(wndPtr->dwStyle & WS_DISABLED) ||
                  ((wndPtr->dwStyle & (WS_POPUP | WS_CHILD)) != WS_CHILD)) &&
 		(wndPtr->hrgnWnd ?





More information about the wine-patches mailing list