Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - CXTPTreeCtrl and SetIndent
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPTreeCtrl and SetIndent

 Post Reply Post Reply
Author
Message
sibrowne View Drop Down
Newbie
Newbie


Joined: 18 October 2007
Location: United Kingdom
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote sibrowne Quote  Post ReplyReply Direct Link To This Post Topic: CXTPTreeCtrl and SetIndent
    Posted: 05 October 2022 at 9:24am
We've recently updated from using Codejock v17 with VS2017 and have seen an issue in CXTPTreeCtrl that wasn't there previously.

We were using the SetIndent call in our override of CXTPTreeCtrl to move each item in the tree to the right by a number of pixels, so that we could draw some additional custom icons to the left of each item:




After updating, we now get this:



The expander button does not draw in the correct place, but to operate the expander button, you now have to click in the space with the dotted line (where the expander button used to be). It appears that the Hit Test for the expander is correct, but the expander image is drawing in the wrong place.

I have repeated this behaviour in the Codejock TreeCtrl sample app for Codejock v20 and VS2022, just by adding the following line to TreeCtrlDlg.cpp:



Are we using SetIndent incorrectly or is it not supported in CXTPTreeCtrl?
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.156 seconds.