Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - About CXTTreeView and CXTTreeCtrl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

About CXTTreeView and CXTTreeCtrl

 Post Reply Post Reply
Author
Message
fanast View Drop Down
Newbie
Newbie
Avatar

Joined: 15 September 2006
Location: United States
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote fanast Quote  Post ReplyReply Direct Link To This Post Topic: About CXTTreeView and CXTTreeCtrl
    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.
Back to Top
tNgLoo View Drop Down
Groupie
Groupie


Joined: 21 April 2005
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote tNgLoo Quote  Post ReplyReply Direct Link To This Post Posted: 15 September 2006 at 3:45am
TreeCtrl also supports DnD
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: 15 September 2006 at 7:02am
Hi,
May be you forgot to create tree window with Create method?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
fanast View Drop Down
Newbie
Newbie
Avatar

Joined: 15 September 2006
Location: United States
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote fanast Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
fanast View Drop Down
Newbie
Newbie
Avatar

Joined: 15 September 2006
Location: United States
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote fanast Quote  Post ReplyReply Direct Link To This Post 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?
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.