Print Page | Close Window

CXTPTreeCtrl and SetIndent

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=24330
Printed Date: 23 November 2024 at 12:43pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPTreeCtrl and SetIndent
Posted By: sibrowne
Subject: CXTPTreeCtrl and SetIndent
Date 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?



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