Don't add extra OFFSET_X/Y to the calculation of rcBitmap.top/left,

just use GetSystemMetrics.
This commit is contained in:
Thorsten Kani 2004-10-21 20:58:43 +00:00 committed by Alexandre Julliard
parent 9c26e5ba21
commit c0a142ccee
1 changed files with 2 additions and 2 deletions

View File

@ -868,12 +868,12 @@ TOOLBAR_DrawButton (HWND hwnd, TBUTTON_INFO *btnPtr, HDC hdc)
/* Center the bitmap horizontally and vertically */
if (dwStyle & TBSTYLE_LIST)
rcBitmap.left += GetSystemMetrics(SM_CXEDGE) + OFFSET_X;
rcBitmap.left += GetSystemMetrics(SM_CXEDGE);
else
rcBitmap.left+=(infoPtr->nButtonWidth - infoPtr->nBitmapWidth) / 2;
if(lpText)
rcBitmap.top+= GetSystemMetrics(SM_CYEDGE) + OFFSET_Y;
rcBitmap.top+= GetSystemMetrics(SM_CYEDGE);
else
rcBitmap.top+=(infoPtr->nButtonHeight - infoPtr->nBitmapHeight) / 2;