- Implemented SPI_GETMINIMIZEDMETRICS calculated from values returned

by GetSystemMetrics.
- Implemented SPI_SETMINIMIZEDMETRICS. Determined that the values set
  here are valid for the current session only and will not persist
  across reboots.
This commit is contained in:
Justin Chevrier 2005-01-14 16:49:12 +00:00 committed by Alexandre Julliard
parent 6036a773e2
commit acb223ee21
1 changed files with 18 additions and 6 deletions

View File

@ -1491,17 +1491,29 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
MINIMIZEDMETRICS * lpMm = pvParam;
if (lpMm && lpMm->cbSize == sizeof(*lpMm))
{
/* these taken from Win2k SP3 */
lpMm->iWidth = 154;
lpMm->iHorzGap = 0;
lpMm->iVertGap = 0;
lpMm->iArrange = 8;
lpMm->iWidth = sysMetrics[SM_CXMINIMIZED] - 6;
lpMm->iHorzGap = sysMetrics[SM_CXMINSPACING] - sysMetrics[SM_CXMINIMIZED];
lpMm->iVertGap = sysMetrics[SM_CYMINSPACING] - sysMetrics[SM_CYMINIMIZED];
lpMm->iArrange = sysMetrics[SM_ARRANGE];
}
else
ret = FALSE;
break;
}
case SPI_SETMINIMIZEDMETRICS: /* 44 WINVER >= 0x400 */
{
MINIMIZEDMETRICS * lpMm = pvParam;
if (lpMm && lpMm->cbSize == sizeof(*lpMm))
{
sysMetrics[SM_CXMINIMIZED] = lpMm->iWidth + 6;
sysMetrics[SM_CXMINSPACING] = lpMm->iHorzGap + sysMetrics[SM_CXMINIMIZED];
sysMetrics[SM_CYMINSPACING] = lpMm->iVertGap + sysMetrics[SM_CYMINIMIZED];
sysMetrics[SM_ARRANGE] = lpMm->iArrange;
}
else
ret = FALSE;
break;
}
WINE_SPI_FIXME(SPI_SETMINIMIZEDMETRICS); /* 44 WINVER >= 0x400 */
case SPI_GETICONMETRICS: /* 45 WINVER >= 0x400 */
{