Use the SW_XXX constants when calling ShowWindow().
This commit is contained in:
parent
8d3167cc9a
commit
396bad1f6e
|
@ -204,15 +204,15 @@ static INT_PTR CALLBACK SHDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lP
|
||||||
switch (d->dwType)
|
switch (d->dwType)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
ShowWindow(GetDlgItem(hDlg, IDCANCEL), FALSE);
|
ShowWindow(GetDlgItem(hDlg, IDCANCEL), SW_HIDE);
|
||||||
/* FIXME: Move OK button to position of the Cancel button (cosmetic) */
|
/* FIXME: Move OK button to position of the Cancel button (cosmetic) */
|
||||||
case 1:
|
case 1:
|
||||||
ShowWindow(GetDlgItem(hDlg, IDYES), FALSE);
|
ShowWindow(GetDlgItem(hDlg, IDYES), SW_HIDE);
|
||||||
ShowWindow(GetDlgItem(hDlg, IDNO), FALSE);
|
ShowWindow(GetDlgItem(hDlg, IDNO), SW_HIDE);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ShowWindow(GetDlgItem(hDlg, IDOK), FALSE);
|
ShowWindow(GetDlgItem(hDlg, IDOK), SW_HIDE);
|
||||||
ShowWindow(GetDlgItem(hDlg, IDCANCEL), FALSE);
|
ShowWindow(GetDlgItem(hDlg, IDCANCEL), SW_HIDE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
|
@ -1250,7 +1250,7 @@ static void WINAPI IWineD3DDeviceImpl_SetupFullscreenWindow(IWineD3DDevice *ifac
|
||||||
/* Inform the window about the update. */
|
/* Inform the window about the update. */
|
||||||
SetWindowPos(window, HWND_TOP, 0, 0,
|
SetWindowPos(window, HWND_TOP, 0, 0,
|
||||||
This->ddraw_width, This->ddraw_height, SWP_FRAMECHANGED);
|
This->ddraw_width, This->ddraw_height, SWP_FRAMECHANGED);
|
||||||
ShowWindow(window, TRUE);
|
ShowWindow(window, SW_NORMAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
|
|
Loading…
Reference in New Issue