![]() |
About CXTTreeView and CXTTreeCtrl |
Post Reply
|
| Author | |
fanast
Newbie
Joined: 15 September 2006 Location: United States Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: About CXTTreeView and CXTTreeCtrlPosted: 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.
|
|
![]() |
|
tNgLoo
Groupie
Joined: 21 April 2005 Status: Offline Points: 31 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 September 2006 at 3:45am |
|
TreeCtrl also supports DnD
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
fanast
Newbie
Joined: 15 September 2006 Location: United States Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 September 2006 at 5:43am |
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?
|
|
![]() |
|
fanast
Newbie
Joined: 15 September 2006 Location: United States Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 September 2006 at 5:46am |
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?
|
|
![]() |
|
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 |