ShowWindow and SW_FORCEMINIMIZE
Jukka Heinonen
jhei at iki.fi
Mon Mar 11 12:31:55 CST 2002
SimCity 2000 seems to use Windows 2000 SW_FORCEMINIMIZE
option when it calls ShowWindow; the following patch
adds this option to Wine.
Changelog:
Added option SW_FORCEMINIMIZE to ShowWindow.
Index: wine/include/winuser.h
===================================================================
RCS file: /home/wine/wine/include/winuser.h,v
retrieving revision 1.133
diff -u -r1.133 winuser.h
--- wine/include/winuser.h 2002/03/10 00:02:34 1.133
+++ wine/include/winuser.h 2002/03/10 17:32:37
@@ -2871,7 +2871,8 @@
#define SW_SHOWNA 8
#define SW_RESTORE 9
#define SW_SHOWDEFAULT 10
-#define SW_MAX 10
+#define SW_FORCEMINIMIZE 11
+#define SW_MAX 11
#define SW_NORMALNA 0xCC /* undoc. flag in MinMaximize */
/* WM_SIZE message wParam values */
Index: wine/dlls/x11drv/winpos.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/winpos.c,v
retrieving revision 1.36
diff -u -r1.36 winpos.c
--- wine/dlls/x11drv/winpos.c 2002/03/09 23:44:35 1.36
+++ wine/dlls/x11drv/winpos.c 2002/03/10 17:30:24
@@ -1178,6 +1178,7 @@
swp |= SWP_NOACTIVATE | SWP_NOZORDER;
/* fall through */
case SW_SHOWMINIMIZED:
+ case SW_FORCEMINIMIZE: // FIXME: Does not work if thread is hung.
swp |= SWP_SHOWWINDOW;
/* fall through */
case SW_MINIMIZE:
--
Jukka Heinonen <http://www.iki.fi/jhei/>
More information about the wine-patches
mailing list