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

TVN_SELCHANGED not sent for CXTShellTreeCtrl

 Post Reply Post Reply
Author
Message
d-sleeman View Drop Down
Newbie
Newbie
Avatar

Joined: 15 June 2006
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote d-sleeman Quote  Post ReplyReply Direct Link To This Post Topic: TVN_SELCHANGED not sent for CXTShellTreeCtrl
    Posted: 26 February 2007 at 11:03pm
I am using the CXTShellTreeCtrl in a dialog to display a folder list. I would like the dialog to receive the TVN_SELCHANGED message whenever the user changes the current folder.

Using a different shell tree control, this message was sent, but I've been unable to receive this message using the codejock control. Is there something specific I need to do to have the shell tree notify the parent window?

Also, how can I get it to expand to the folder I choose on initialization and not expand the "My Documents" folder as well?

Any help would be greatly appreciated. Thanks
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 27 February 2007 at 12:54am
Hello,
1. yes, now CXTShellTreeCtrl catch TVN_SELCHANGED  and eats it. We will change it.
You can override it, catch ON_NOTIFY_REFLECT_EX(TVN_SELCHANGED, OnSelchanged), call base class method, and return FALSE
 
2. Call before you initialize tree: tree.SetRootFolder(CSIDL_DRIVES);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
d-sleeman View Drop Down
Newbie
Newbie
Avatar

Joined: 15 June 2006
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote d-sleeman Quote  Post ReplyReply Direct Link To This Post Posted: 27 February 2007 at 1:31am
Works like a charm. Thanks for your help. I'll keep my eyes open for the bug fix in the future. Happy coding.
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.031 seconds.