Doubleclick in systray (was Pegasus Mail 4.02)

Alexandre Julliard julliard at winehq.com
Sat Nov 23 18:53:43 CST 2002


Duane Clark <dclark at akamail.com> writes:

> And just as a bit more info, under both WinNT and Wine, the systray
> gets the dual mouse down, mouse up sequence. The SYSTRAY_WndProc()
> function directly the posts messages to the app. So it appears to me
> that it is the responsibility of SYSTRAY_WndProc() to keep track of
> the clicks, and create the doubleclick message. Does that sound
> reasonable?

Something like this might help:

Index: dlls/shell32/systray.c
===================================================================
RCS file: /opt/cvs-commit/wine/dlls/shell32/systray.c,v
retrieving revision 1.19
diff -u -r1.19 systray.c
--- dlls/shell32/systray.c	21 Nov 2002 23:56:42 -0000	1.19
+++ dlls/shell32/systray.c	24 Nov 2002 00:49:37 -0000
@@ -157,7 +157,7 @@
 {
   WNDCLASSA  wc;
 
-  wc.style         = CS_SAVEBITS;
+  wc.style         = CS_SAVEBITS|CS_DBLCLKS;
   wc.lpfnWndProc   = (WNDPROC)SYSTRAY_WndProc;
   wc.cbClsExtra    = 0;
   wc.cbWndExtra    = 0;

-- 
Alexandre Julliard
julliard at winehq.com



More information about the wine-devel mailing list