Use IsWindowVisible instead of GetWindowLong(GWL_STYLE) & WS_VISIBLE as a test for desktop visibility

Dmitry Timoshkov dmitry at baikal.ru
Wed Mar 2 09:27:55 CST 2005


Hello,

let's see if IsWindowVisible() better detects a not visible desktop.

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    Use IsWindowVisible instead of GetWindowLong(GWL_STYLE) & WS_VISIBLE
    as a test for desktop visibility.

--- cvs/hq/wine/programs/winetest/main.c	Thu Jan 06 23:48:04 2005
+++ wine/programs/winetest/main.c	Wed Mar 02 15:24:57 2005
@@ -68,7 +68,7 @@ static int running_under_wine ()
 
 static int running_on_visible_desktop ()
 {
-    return (GetWindowLongA (GetDesktopWindow (), GWL_STYLE) & WS_VISIBLE) != 0;
+    return IsWindowVisible( GetDesktopWindow() );
 }
 
 void print_version ()






More information about the wine-patches mailing list