mirror of
https://github.com/reactos/reactos.git
synced 2025-05-18 16:51:18 +00:00
[COMCTL32] -Take into account the upper theme margin when drawing the icon so that it doesn't look misplaced. This makes the themed taskbar buttons look more or less good despite the fact that we completely ignore the left and right margins.
svn path=/trunk/; revision=75437
This commit is contained in:
parent
91dda33431
commit
9e7f835989
1 changed files with 3 additions and 0 deletions
|
@ -1019,6 +1019,9 @@ TOOLBAR_DrawButton (const TOOLBAR_INFO *infoPtr, TBUTTON_INFO *btnPtr, HDC hdc,
|
|||
rcBitmap.left += ((rc.right - rc.left) - infoPtr->nBitmapWidth) / 2;
|
||||
|
||||
rcBitmap.top += infoPtr->szPadding.cy / 2;
|
||||
#ifdef __REACTOS__
|
||||
rcBitmap.top += infoPtr->themeMargins.cyTopHeight;
|
||||
#endif
|
||||
|
||||
TRACE("iBitmap=%d, start=(%d,%d) w=%d, h=%d\n",
|
||||
btnPtr->iBitmap, rcBitmap.left, rcBitmap.top,
|
||||
|
|
Loading…
Reference in a new issue