Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » To Load CTreeCtrl on CExtToolBoxWnd Collapse All
Subject Author Date
Debabrata Mukherjee Sep 17, 2007 - 9:56 AM

I have a window in my application which is a CExtToolBoxWnd, and I want to load a tree control derived from CTreeCtrl on it.
I have a specific hirerchy in my tree structure and I want to retain the hirerchy.Kindly provide me some concrete way on it..

Will I be able to use features of ToolBox window like collapse and expand and highlight on mouse hover.?

Any sample application would of good help.

Technical Support Sep 21, 2007 - 5:17 AM

Sorry, forgot to provide a link to the sample. Here it is:

SDIDOCVIEW.zip

Technical Support Sep 20, 2007 - 12:57 PM

Here is a modified version of the SDIDOCVIEW sample in which there are two control bars: one with tree controls and another one with a toolbox. At the application initialization in the CMainFrame::OnCreate() method, we invoke a DuplicateTreeInToolbox() method which creates the toolbox items with the same hierarchy as in the tree control. This is done in the _WalkTreeChildBranch() recursive function.

Debabrata Mukherjee Sep 18, 2007 - 9:44 AM

It would be very helpful, if u can give us a sample

Technical Support Sep 18, 2007 - 3:50 AM

It seems you are asking about details specific to your project only. There is only one major difference between the CTreeCtrl and CExtToolBoxWnd controls: the former control has different nested levels of its items when the CExtToolBoxWnd control has a persistent 3-level item structure (invisible root item, group items and group member items). If you want put data of CTreeCtrl into CExtToolBoxWnd, then you should create a recursive function. If it is what you need, we can provide you with a sample. If not, we need more details about your task.