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

1 file changed