Mikołaj Zalewski : comctl32: rebar: Use SM_CYEDGE for heights in NCCalcSize.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Oct 17 06:12:29 CDT 2006
Module: wine
Branch: master
Commit: 4205c64e8b5a5a4221de5e11c70cb734a4f71e12
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4205c64e8b5a5a4221de5e11c70cb734a4f71e12
Author: Mikołaj Zalewski <mikolaj at zalewski.pl>
Date: Tue Oct 17 09:02:41 2006 +0200
comctl32: rebar: Use SM_CYEDGE for heights in NCCalcSize.
---
dlls/comctl32/rebar.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/rebar.c b/dlls/comctl32/rebar.c
index d2c8b94..1188029 100644
--- a/dlls/comctl32/rebar.c
+++ b/dlls/comctl32/rebar.c
@@ -4119,11 +4119,12 @@ REBAR_NCCalcSize (REBAR_INFO *infoPtr, W
if (infoPtr->dwStyle & WS_BORDER) {
rect->left = min(rect->left + GetSystemMetrics(SM_CXEDGE), rect->right);
rect->right = max(rect->right - GetSystemMetrics(SM_CXEDGE), rect->left);
- rect->top = min(rect->top + GetSystemMetrics(SM_CXEDGE), rect->bottom);
- rect->bottom = max(rect->bottom - GetSystemMetrics(SM_CXEDGE), rect->top);
+ rect->top = min(rect->top + GetSystemMetrics(SM_CYEDGE), rect->bottom);
+ rect->bottom = max(rect->bottom - GetSystemMetrics(SM_CYEDGE), rect->top);
}
else if ((theme = GetWindowTheme (infoPtr->hwndSelf)))
{
+ /* FIXME: should use GetThemeInt */
rect->top = min(rect->top + 1, rect->bottom);
}
TRACE("new client=(%d,%d)-(%d,%d)\n", rect->left, rect->top, rect->right, rect->bottom);
More information about the wine-cvs
mailing list