BUG: Redraw problems with CXTPTreeCtrl |
Post Reply |
Author | |
MacW
Senior Member Joined: 26 June 2007 Status: Offline Points: 253 |
Post Options
Thanks(0)
Posted: 28 December 2016 at 8:27am |
This is new for the latest release:
When I scroll the contents of a CXTPTreeCtrl horizontally, it does not update correctly, leaving reminders of the tree lines: The tree is in a XTP Docking Panel. Resizing the panel to force a redraw solves the problem. My code is unchanged except for updating it to use the latest version of XTP. I see a change in void CXTPTreeBase::DrawItem(CDC *pDC, HTREEITEM hItem), the line rcExpander.OffsetRect(-XTP_DPI_X(XTP_TREE_ICON_IDENT), 0); has been added. Maybe the offset is not right? |
|
MacW
Senior Member Joined: 26 June 2007 Status: Offline Points: 253 |
Post Options
Thanks(0)
|
When I replace the CXTPTreeBase::DrawItem and CXTPTreeBase::GetItemExpanderRect with the implementations from the 17.2 edition of XTP, the drawing problem is gone.
So the changes introduced in the current version are causing this. |
|
agontarenko
Admin Group Joined: 25 March 2016 Status: Offline Points: 299 |
Post Options
Thanks(0)
|
Hello MacW,
I'm glad to inform you that the issue has been fixed. The fix will be available in the next beta or final release. Regards, Artem Gontarenko |
|
MacW
Senior Member Joined: 26 June 2007 Status: Offline Points: 253 |
Post Options
Thanks(0)
|
Artem,
that's good news. Can you share a patch I can include in the 17.3 release? Otherwise I need to ship my software the code from the 17.2 I've included. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |