Multiple splitters

Macaco

Freshman
Joined
Jul 5, 2004
Messages
39
With this code I get one treeview to the left, one splitter in the middle and a listview on the right. But how can I put another splitter (but this horizontal) to the right dividing the list view into for example two listviews???

thanks

// Create TreeView, ListView, and Splitter controls.
TreeView* treeView1 = new TreeView();
ListView* listView1 = new ListView();
Splitter* splitter1 = new Splitter();

// Set the TreeView control to dock to the left side of the form.
treeView1->Dock = DockStyle::Left;
// Set the Splitter to dock to the left side of the TreeView control.
splitter1->Dock = DockStyle::Left;
// Set the minimum size the ListView control can be sized to.
splitter1->MinExtra = 100;
// Set the minimum size the TreeView control can be sized to.
splitter1->MinSize = 100;
// Set the ListView control to fill the remaining space on the form.
listView1->Dock = DockStyle::Fill;


Control* temp0 [] = {listView1, splitter1, treeView1};

this->Controls->Contains(temp0);
 
Yes, I have done what I wanted to do... but now I see where is the problem...
cannot do two horizontal divisions which are divided with a vertical one.
Because I make a veritcal then a horizontal to the right but then I cannot come back to the left to make another division.

Anyone knows?

tahnks
 
I want to do this:

Is it necessary to use CSplitterWnd???? Has it got to be static or dynamic?!??!?

Have you got any example for it in c++ .net?????

Please help !! :(
 

Attachments

Back
Top