mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 08:03:03 +00:00
Use a ClipRegion when collapsing, so that the TreeView works correctly.
This patch has already been submitted to Wine, but as they don't care currently, I applied it manually here and updated "comctl32_ros.diff" accordingly. Patch by Timo Kreuzer svn path=/trunk/; revision=33985
This commit is contained in:
parent
6846255313
commit
abae3b6913
2 changed files with 12 additions and 3 deletions
|
@ -123,8 +123,8 @@ Index: tooltips.c
|
||||||
|
|
||||||
Index: treeview.c
|
Index: treeview.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- treeview.c (revision 27134)
|
--- D:/Wine-CVS/wine/dlls/comctl32/treeview.c Sun Jun 15 18:29:21 2008
|
||||||
+++ treeview.c (working copy)
|
+++ D:/ReactOS-Trunk/reactos/dll/win32/comctl32/treeview.c Sun Jun 15 18:27:14 2008
|
||||||
@@ -2826,8 +2826,6 @@
|
@@ -2826,8 +2826,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -134,3 +134,12 @@ Index: treeview.c
|
||||||
if (infoPtr->cdmode & CDRF_NOTIFYPOSTPAINT)
|
if (infoPtr->cdmode & CDRF_NOTIFYPOSTPAINT)
|
||||||
infoPtr->cdmode =
|
infoPtr->cdmode =
|
||||||
TREEVIEW_SendCustomDrawNotify(infoPtr, CDDS_POSTPAINT, hdc, rect);
|
TREEVIEW_SendCustomDrawNotify(infoPtr, CDDS_POSTPAINT, hdc, rect);
|
||||||
|
@@ -3209,7 +3207,7 @@
|
||||||
|
{
|
||||||
|
scrollRect.top = nextItem->rect.top;
|
||||||
|
|
||||||
|
- ScrollWindowEx (infoPtr->hwnd, 0, scrollDist, &scrollRect, NULL,
|
||||||
|
+ ScrollWindowEx (infoPtr->hwnd, 0, scrollDist, &scrollRect, &scrollRect,
|
||||||
|
NULL, NULL, SW_ERASE | SW_INVALIDATE);
|
||||||
|
TREEVIEW_Invalidate(infoPtr, wineItem);
|
||||||
|
} else {
|
||||||
|
|
|
@ -3207,7 +3207,7 @@ TREEVIEW_Collapse(TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *wineItem,
|
||||||
{
|
{
|
||||||
scrollRect.top = nextItem->rect.top;
|
scrollRect.top = nextItem->rect.top;
|
||||||
|
|
||||||
ScrollWindowEx (infoPtr->hwnd, 0, scrollDist, &scrollRect, NULL,
|
ScrollWindowEx (infoPtr->hwnd, 0, scrollDist, &scrollRect, &scrollRect,
|
||||||
NULL, NULL, SW_ERASE | SW_INVALIDATE);
|
NULL, NULL, SW_ERASE | SW_INVALIDATE);
|
||||||
TREEVIEW_Invalidate(infoPtr, wineItem);
|
TREEVIEW_Invalidate(infoPtr, wineItem);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue