Francois Gouget : Use the SW_XXX constants when calling ShowWindow().
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Feb 23 05:28:11 CST 2007
Module: wine
Branch: master
Commit: 396bad1f6ed070bf98b8074b3cfcf8664c7dfa9f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=396bad1f6ed070bf98b8074b3cfcf8664c7dfa9f
Author: Francois Gouget <fgouget at free.fr>
Date: Thu Feb 22 11:20:35 2007 +0100
Use the SW_XXX constants when calling ShowWindow().
---
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 82873c6..b1e9c2d 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);
}
/*****************************************************************************
More information about the wine-cvs
mailing list