Keep window hidden

Francois Gouget fgouget at codeweavers.com
Mon Mar 18 14:03:20 CST 2002


   The sysparam test is creating a window and calling:
   ShowWindow( ghTestWnd, SW_SHOWNORMAL );

   This causes the window to pop up and grab the focus. Needless to say
this is very annoying if you try to do something else while running the
tests. For this particular test SW_HIDE works just as well and does not
disturb the user. For other (future) tests one may use SW_SHOWNA.

Changelog:

   François Gouget <fgouget at codeweavers.com>

 * dlls/user/tests/sysparams.c

   Use ShowWindow(SW_HIDE) so that the test does not interfer with the
user

-- 
François Gouget
fgouget at codeweavers.com
-------------- next part --------------
Index: dlls/user/tests/sysparams.c
===================================================================
RCS file: /home/wine/wine/dlls/user/tests/sysparams.c,v
retrieving revision 1.2
diff -u -r1.2 sysparams.c
--- dlls/user/tests/sysparams.c	9 Mar 2002 23:44:31 -0000	1.2
+++ dlls/user/tests/sysparams.c	18 Mar 2002 18:34:26 -0000
@@ -1034,7 +1034,7 @@
 
     ghTestWnd = CreateWindowA( "SysParamsTestClass", "Test System Parameters Application",
                                WS_OVERLAPPEDWINDOW, 0, 0, 100, 100, 0, 0, hInstance, NULL );
-    ShowWindow( ghTestWnd, SW_SHOWNORMAL );
+    ShowWindow( ghTestWnd, SW_HIDE );
 
     hThread = CreateThread( NULL, 0, SysParamsThreadFunc, 0, 0, &dwThreadId );
     assert( hThread );


More information about the wine-patches mailing list