![]() |
TVN_SELCHANGED not sent for CXTShellTreeCtrl |
Post Reply ![]() |
Author | |
d-sleeman ![]() Newbie ![]() ![]() Joined: 15 June 2006 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
d-sleeman ![]() Newbie ![]() ![]() Joined: 15 June 2006 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
Works like a charm. Thanks for your help. I'll keep my eyes open for the bug fix in the future. Happy coding.
|
|
![]() |
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 |