Print Page | Close Window

About CXTTreeView and CXTTreeCtrl

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=5056
Printed Date: 20 June 2025 at 2:12pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: About CXTTreeView and CXTTreeCtrl
Posted By: fanast
Subject: About CXTTreeView and CXTTreeCtrl
Date Posted: 15 September 2006 at 3:16am
CXTTreeCtrl looks a pretty nice component with multiple selection and other useful properties. However, it comes to me a problem when I wanna enable my TreeCtrl with drag and drop. From the research I found that TreeView is needed for my purpose. So I've spent rather a long time to think about how to build a customized TreeView with CXTTreeCtrl... well is that possible?
 
Later I found there's a hidden component CXTTreeView which can be created with
 
treeview = (CXTTreeView*)(RUNTIME_CLASS(CXTTreeView)->CreateObject());
 
However, once I wanna access the corresponding TreeCtrl
(eg,
treeview->GetTreeCtrl()->ModifyStyle(...) or
treeview->GetTreeCtrl()->InsertItem(...) )
 
Assert failure pop up and I could no longer proceed.
 
Any solution? Should I make a customized TreeView with CXTTreeCtrl, or have another way to access the CXTTreeCtrl in CXTTreeView?
 
Thanks in advance.



Replies:
Posted By: tNgLoo
Date Posted: 15 September 2006 at 3:45am
TreeCtrl also supports DnD


Posted By: Oleg
Date Posted: 15 September 2006 at 7:02am
Hi,
May be you forgot to create tree window with Create method?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: fanast
Date Posted: 18 September 2006 at 5:43am
Originally posted by tNgLoo tNgLoo wrote:

TreeCtrl also supports DnD
 
Thanks tNgLoo. I've tried to use TreeCtrl to make the Drag and Drop but it seems that it's only available within the application. What I would like to do is to drag and drop with the files beyound the application. Is that possible?


Posted By: fanast
Date Posted: 18 September 2006 at 5:46am
Originally posted by oleg oleg wrote:

Hi,
May be you forgot to create tree window with Create method?
 
Do I have to explicitly call Create method to create the treeCtrl even I use the one which is the attribute in the treeView?
 
treeview->GetTreeCtrl()
 
I thought the treeCtrl of the treeView is automatically created once the treeView is created, isn't it?



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