Only child windows receive WM_SHOWWINDOW in DestroyWindow() under Windows

Dmitry Timoshkov dmitry at baikal.ru
Sat May 1 09:43:48 CDT 2004


Hello,

here is another patch based on the message test results.

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    Only child windows receive WM_SHOWWINDOW in DestroyWindow() under Windows.

--- cvs/hq/wine/windows/win.c	2004-04-03 12:30:57.000000000 +0900
+++ wine/windows/win.c	2004-05-01 18:13:55.000000000 +0900
@@ -1506,6 +1506,15 @@ BOOL WINAPI DestroyWindow( HWND hwnd )
 
       /* Hide the window */
 
+    /* Only child windows receive WM_SHOWWINDOW in DestroyWindow()
+     * under Windows
+     */
+    if (is_child)
+        ShowWindow( hwnd, SW_HIDE );
+    else
+        SetWindowPos( hwnd, 0, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE |
+                      SWP_NOZORDER | SWP_HIDEWINDOW );
+
     if (!IsWindow(hwnd)) return TRUE;
 
       /* Recursively destroy owned windows */






More information about the wine-patches mailing list