Use the SW_XXX constants when calling ShowWindow().

Francois Gouget fgouget at free.fr
Thu Feb 22 04:20:35 CST 2007


---


This check was suggested by Andreas Mohr.


 dlls/shlwapi/msgbox.c |   10 +++++-----
 dlls/wined3d/device.c |    2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/shlwapi/msgbox.c b/dlls/shlwapi/msgbox.c
index 5e8c063..0e3c517 100644
--- a/dlls/shlwapi/msgbox.c
+++ b/dlls/shlwapi/msgbox.c
@@ -204,15 +204,15 @@ static INT_PTR CALLBACK SHDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lP
     switch (d->dwType)
     {
     case 0:
-      ShowWindow(GetDlgItem(hDlg, IDCANCEL), FALSE);
+      ShowWindow(GetDlgItem(hDlg, IDCANCEL), SW_HIDE);
       /* FIXME: Move OK button to position of the Cancel button (cosmetic) */
     case 1:
-      ShowWindow(GetDlgItem(hDlg, IDYES), FALSE);
-      ShowWindow(GetDlgItem(hDlg, IDNO), FALSE);
+      ShowWindow(GetDlgItem(hDlg, IDYES), SW_HIDE);
+      ShowWindow(GetDlgItem(hDlg, IDNO), SW_HIDE);
       break;
     default:
-      ShowWindow(GetDlgItem(hDlg, IDOK), FALSE);
-      ShowWindow(GetDlgItem(hDlg, IDCANCEL), FALSE);
+      ShowWindow(GetDlgItem(hDlg, IDOK), SW_HIDE);
+      ShowWindow(GetDlgItem(hDlg, IDCANCEL), SW_HIDE);
       break;
     }
     return TRUE;
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 80ef66f..be38884 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -1250,7 +1250,7 @@ static void WINAPI IWineD3DDeviceImpl_SetupFullscreenWindow(IWineD3DDevice *ifac
     /* Inform the window about the update. */
     SetWindowPos(window, HWND_TOP, 0, 0,
             This->ddraw_width, This->ddraw_height, SWP_FRAMECHANGED);
-    ShowWindow(window, TRUE);
+    ShowWindow(window, SW_NORMAL);
 }
 
 /*****************************************************************************
-- 
1.4.4.4




More information about the wine-patches mailing list