Authors: Dmitry Timoshkov <dmitry@codeweavers.com>, Guy Albertelli <guy@codeweavers.com>

Use GetSystemMetrics() to for caption metrics in NONCLIENTMETRICS
struct. Initialize iScrollWidth and iScrollHeight entries for
SPI_GETNONCLIENTMETRICS.
This commit is contained in:
Alexandre Julliard 2002-02-04 18:30:44 +00:00
parent 75c2df8ede
commit d473d304bd
1 changed files with 6 additions and 6 deletions

View File

@ -1118,18 +1118,18 @@ BOOL WINAPI SystemParametersInfoA( UINT uiAction, UINT uiParam,
lpnm->cbSize - sizeof(lpnm->cbSize) lpnm->cbSize - sizeof(lpnm->cbSize)
); );
/* FIXME: initialize geometry entries */ /* initialize geometry entries */
/* FIXME: As these values are presumably in device units, lpnm->iBorderWidth = -1; /* FIXME */
* we should calculate the defaults based on the screen dpi lpnm->iScrollWidth = GetSystemMetrics(SM_CXVSCROLL);
*/ lpnm->iScrollHeight = GetSystemMetrics(SM_CYHSCROLL);
/* caption */ /* caption */
lpnm->iCaptionWidth = ((TWEAK_WineLook > WIN31_LOOK) ? 32 : 20); lpnm->iCaptionWidth = GetSystemMetrics(SM_CXSIZE);
lpnm->iCaptionHeight = lpnm->iCaptionWidth; lpnm->iCaptionHeight = lpnm->iCaptionWidth;
SystemParametersInfoA( SPI_GETICONTITLELOGFONT, 0, (LPVOID)&(lpnm->lfCaptionFont), 0 ); SystemParametersInfoA( SPI_GETICONTITLELOGFONT, 0, (LPVOID)&(lpnm->lfCaptionFont), 0 );
lpnm->lfCaptionFont.lfWeight = FW_BOLD; lpnm->lfCaptionFont.lfWeight = FW_BOLD;
/* small caption */ /* small caption */
lpnm->iSmCaptionWidth = ((TWEAK_WineLook > WIN31_LOOK) ? 32 : 17); lpnm->iSmCaptionWidth = GetSystemMetrics(SM_CXSMSIZE);
lpnm->iSmCaptionHeight = lpnm->iSmCaptionWidth; lpnm->iSmCaptionHeight = lpnm->iSmCaptionWidth;
SystemParametersInfoA( SPI_GETICONTITLELOGFONT, 0, (LPVOID)&(lpnm->lfSmCaptionFont), 0 ); SystemParametersInfoA( SPI_GETICONTITLELOGFONT, 0, (LPVOID)&(lpnm->lfSmCaptionFont), 0 );