Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTShellTreeCtrl Selection
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTShellTreeCtrl Selection

 Post Reply Post Reply
Author
Message
rconn View Drop Down
Groupie
Groupie


Joined: 16 May 2007
Location: United States
Status: Offline
Points: 79
Post Options Post Options   Thanks (0) Thanks(0)   Quote rconn Quote  Post ReplyReply Direct Link To This Post Topic: CXTShellTreeCtrl Selection
    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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 28 December 2007 at 5:35am
Hi,
Just remove TVS_SINGLEEXPAND style
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
rconn View Drop Down
Groupie
Groupie


Joined: 16 May 2007
Location: United States
Status: Offline
Points: 79
Post Options Post Options   Thanks (0) Thanks(0)   Quote rconn Quote  Post ReplyReply Direct Link To This Post 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
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.066 seconds.