Use the SW_XXX constants when calling ShowWindow().

This commit is contained in:
Francois Gouget 2007-02-22 11:20:35 +01:00 committed by Alexandre Julliard
parent 8d3167cc9a
commit 396bad1f6e
2 changed files with 6 additions and 6 deletions

View file

@ -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;

View file

@ -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);
}
/*****************************************************************************