Only child windows receive WM_SHOWWINDOW in DestroyWindow() under Windows

Dmitry Timoshkov dmitry at baikal.ru
Thu May 6 05:37:21 CDT 2004


Hello,

it's an old patch synchronized with current CVS.

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-06 19:21:26.000000000 +0900
@@ -1498,6 +1498,15 @@ BOOL WINAPI DestroyWindow( HWND hwnd )
         /* FIXME: clean up palette - see "Internals" p.352 */
     }
 
+    /* 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;
 
     if (USER_Driver.pResetSelectionOwner)






More information about the wine-patches mailing list