Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - BUG: Redraw problems with CXTPTreeCtrl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BUG: Redraw problems with CXTPTreeCtrl

 Post Reply Post Reply
Author
Message
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Topic: BUG: Redraw problems with CXTPTreeCtrl
    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?


Back to Top
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
agontarenko View Drop Down
Admin Group
Admin Group


Joined: 25 March 2016
Status: Offline
Points: 299
Post Options Post Options   Thanks (0) Thanks(0)   Quote agontarenko Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.