Print Page | Close Window

TVN_SELCHANGED not sent for CXTShellTreeCtrl

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=6514
Printed Date: 19 June 2025 at 5:26am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TVN_SELCHANGED not sent for CXTShellTreeCtrl
Posted By: d-sleeman
Subject: TVN_SELCHANGED not sent for CXTShellTreeCtrl
Date 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



Replies:
Posted By: Oleg
Date 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


Posted By: d-sleeman
Date 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.



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