linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #06697
[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 3225: fix table-tree lines when scrolling
------------------------------------------------------------
revno: 3225
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Sat 2013-03-16 16:25:18 +0100
message:
fix table-tree lines when scrolling
modified:
dwt/src/widgets/Table.cpp
--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk
Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'dwt/src/widgets/Table.cpp'
--- dwt/src/widgets/Table.cpp 2013-03-16 13:25:11 +0000
+++ dwt/src/widgets/Table.cpp 2013-03-16 15:25:18 +0000
@@ -654,10 +654,12 @@
// when asked for the column 0, Windows returns a rect for the whole item.
if(col == 0) {
+ ::POINT org;
+ ListView_GetOrigin(handle(), &org);
::RECT colRect;
Header_GetItemRect(ListView_GetHeader(handle()), col, &colRect);
- r.left = colRect.left;
- r.right = colRect.right;
+ r.left = colRect.left - org.x;
+ r.right = colRect.right - org.x;
}
return Rectangle(r);