Macaco Posted October 14, 2004 Posted October 14, 2004 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); Quote
Administrators PlausiblyDamp Posted October 14, 2004 Administrators Posted October 14, 2004 Have you tried docking the second splitter to the top rather than the default of Left? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Macaco Posted October 16, 2004 Author Posted October 16, 2004 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 Quote
Macaco Posted October 16, 2004 Author Posted October 16, 2004 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 !! :( Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.