Print Page | Close Window

CXTShellTreeCtrl Selection

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=9189
Printed Date: 14 November 2025 at 8:13am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTShellTreeCtrl Selection
Posted By: rconn
Subject: CXTShellTreeCtrl Selection
Date Posted: 27 December 2007 at 10:07am

Is it possible to have the tree view *not* expand/collapse the tree on a single click on the name? 

I'd like it to behave like Explorer, where selecting a directory name with a single click doesn't expand or collapse the tree.  I only want the tree to expand/collapse when I click on the + or - button, or if I double click on a name.
 
Thanks for your help.
 
Rex Conn
JP Software



Replies:
Posted By: Oleg
Date Posted: 28 December 2007 at 5:35am
Hi,
Just remove TVS_SINGLEEXPAND style


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: rconn
Date Posted: 28 December 2007 at 2:31pm
Hi Oleg:
 
I had changed the style in OnInitialUpdate() in XTShellTreeCtrlView.cpp but it didn't have any apparent effect.  After your reply, I went back to XTShellTreeCtrlView and found the style was also being set in Init().  I traced the initialization in the debugger and found that Init() was being called but OnInitialUpdate() was not (not sure why); which explained why my initial change failed to do anything.
 
Thanks for your help.
 
Rex Conn
JP Software



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