CXTPTreeCtrl and SetIndent |
Post Reply |
Author | |
sibrowne
Newbie Joined: 18 October 2007 Location: United Kingdom Status: Offline Points: 2 |
Post Options
Thanks(0)
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?
|
|
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 |