![]() |
CXTShellTreeCtrl Selection |
Post Reply
|
| Author | |
rconn
Groupie
Joined: 16 May 2007 Location: United States Status: Offline Points: 79 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTShellTreeCtrl SelectionPosted: 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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 December 2007 at 5:35am |
|
Hi,
Just remove TVS_SINGLEEXPAND style
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
rconn
Groupie
Joined: 16 May 2007 Location: United States Status: Offline Points: 79 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
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 |