Print Page | Close Window

BUG: Redraw problems with CXTPTreeCtrl

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=23232
Printed Date: 23 December 2024 at 1:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BUG: Redraw problems with CXTPTreeCtrl
Posted By: MacW
Subject: BUG: Redraw problems with CXTPTreeCtrl
Date 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?





Replies:
Posted By: MacW
Date Posted: 28 December 2016 at 10:32am
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.


Posted By: agontarenko
Date Posted: 04 January 2017 at 7:03am
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


Posted By: MacW
Date Posted: 04 January 2017 at 12:20pm
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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net