Aric Stewart : comctl32: treeview:
Ensure our textWidth is correct when returning the size of the text
box.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Sep 11 07:28:39 CDT 2007
Module: wine
Branch: master
Commit: 78da158ef88c16ea17acbf78bece5cb18f6e3d24
URL: http://source.winehq.org/git/wine.git/?a=commit;h=78da158ef88c16ea17acbf78bece5cb18f6e3d24
Author: Aric Stewart <aric at codeweavers.com>
Date: Tue Sep 4 18:58:17 2007 +0900
comctl32: treeview: Ensure our textWidth is correct when returning the size of the text box.
---
dlls/comctl32/treeview.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c
index 742e5e4..7699f65 100644
--- a/dlls/comctl32/treeview.c
+++ b/dlls/comctl32/treeview.c
@@ -2033,7 +2033,10 @@ TREEVIEW_GetItemRect(const TREEVIEW_INFO *infoPtr, BOOL fTextRect, LPRECT lpRect
lpRect->bottom = wineItem->rect.bottom;
lpRect->left = wineItem->textOffset;
- lpRect->right = wineItem->textOffset + wineItem->textWidth;
+ if (!wineItem->textWidth)
+ TREEVIEW_ComputeTextWidth(infoPtr, wineItem, 0);
+
+ lpRect->right = wineItem->textOffset + wineItem->textWidth + 4;
}
else
{
More information about the wine-cvs
mailing list