systray mini fix for #291, #570
Andreas Mohr
andi at rhlx01.fht-esslingen.de
Mon Feb 10 18:08:10 CST 2003
Hi all,
this fixes bugs #291, #570 by inserting a GetSystemMetrics(SM_CYCAPTION)
at window creation.
Index: dlls/shell32/systray.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/systray.c,v
retrieving revision 1.20
diff -u -r1.20 systray.c
--- dlls/shell32/systray.c 24 Nov 2002 22:16:29 -0000 1.20
+++ dlls/shell32/systray.c 11 Feb 2003 00:05:17 -0000
@@ -193,7 +193,7 @@
rect.left = 0;
rect.top = 0;
rect.right = ICON_SIZE+2*ICON_BORDER;
- rect.bottom = ICON_SIZE+2*ICON_BORDER;
+ rect.bottom = GetSystemMetrics(SM_CYCAPTION)+ICON_SIZE+2*ICON_BORDER;
ZeroMemory( ptrayItem, sizeof(SystrayItem) );
/* Create tray window for icon. */
--
Andreas Mohr Stauferstr. 6, D-71272 Renningen, Germany
More information about the wine-patches
mailing list