mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[UXTHEME] -Slightly improve the width of the caption buttons by scaling it based on the height of the caption buttons. CORE-6000
svn path=/trunk/; revision=74240
This commit is contained in:
@@ -216,9 +216,7 @@ ThemeDrawCaptionButton(PDRAW_CONTEXT pcontext,
|
||||
{
|
||||
RECT rcPart;
|
||||
INT ButtonWidth, ButtonHeight, iPartId;
|
||||
|
||||
ButtonHeight = GetSystemMetrics( pcontext->wi.dwExStyle & WS_EX_TOOLWINDOW ? SM_CYSMSIZE : SM_CYSIZE);
|
||||
ButtonWidth = GetSystemMetrics( pcontext->wi.dwExStyle & WS_EX_TOOLWINDOW ? SM_CXSMSIZE : SM_CXSIZE);
|
||||
SIZE ButtonSize;
|
||||
|
||||
switch(buttonId)
|
||||
{
|
||||
@@ -255,6 +253,11 @@ ThemeDrawCaptionButton(PDRAW_CONTEXT pcontext,
|
||||
return;
|
||||
}
|
||||
|
||||
GetThemePartSize(pcontext->theme, pcontext->hDC, iPartId, 0, NULL, TS_MIN, &ButtonSize);
|
||||
|
||||
ButtonHeight = GetSystemMetrics( pcontext->wi.dwExStyle & WS_EX_TOOLWINDOW ? SM_CYSMSIZE : SM_CYSIZE);
|
||||
ButtonWidth = MulDiv(ButtonSize.cx, ButtonHeight, ButtonSize.cy);
|
||||
|
||||
ButtonHeight -= 4;
|
||||
ButtonWidth -= 4;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user