How to add list & tree control in splitter window
Posted on 2006-05-07
Iam doing a project that uses Splitter window.The window is divided into two columns - the left pane and the right pane.Can anyone give me the code that uses a list control in the right view and a tree control in the let view.I have associated the right pane with the CListView in the CreateView function and left pane with CTreeView as follows:
m_splitter.CreateStatic ( this, 1, 2 ) ;
m_splitter.CreateView ( 0, 0, RUNTIME_CLASS (leftview ), CSize ( 128, 0 ), p ) ;
m_splitter.CreateView ( 0, 1, RUNTIME_CLASS (rightview ), CSize ( 0, 0 ), p ) ;
leftview is a class derived from CTreeView and rightview is a class derived from CListView.I have written this in OnCreateClient function.
I would like to know how to actually create a tree control and list control and use them. Where do I write the Create function for creating list control and how will I add columns and items in this control.