Link to home
Start Free TrialLog in
Avatar of waho
waho

asked on

Switching view dynamically

I have two view. One derived from CTreeView and the other one derived from CListView. There is a vertical splitter in between these two views.

My problem is that when i right click on one of the tree item on my CTreeView, a popup dialog box appears allowing users to choose an option, (view 1, view 2, view 3)(p/s:List View is in report format).

When a user choose either view 1 or view 2 option, i want it to be able to switch from view 1 to view 2 or from view 2 to view 1(right view)! How do i do that? Please help!

And when i choose view 3 option, i want view 1 and view 2 concurrently displayed on my right view. That also means i want another horizontal splitter windows. How do i do that? Please help.

I would like to say a thousand of thank you for the person that would be able to solve my problem. Thank you!!!
Avatar of ShaunWilde
ShaunWilde

> When a user choose either view 1 or view 2 option, i want it to be able to switch from view 1 to view 2 or from view 2 to view 1(right view)! How do i do that? Please help!

see http://www.codetools.com/splitter/usefulsplitter.asp

there si also other useful code to be found at

http://www.codetools.com/splitter/

and

http://www.codeguru.com/splitter/index.shtml
ASKER CERTIFIED SOLUTION
Avatar of V_Bapat
V_Bapat
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of waho

ASKER

I have got a solution from ShaunWilde! Anyway thank you for your(V_Bapat) proposed solution!
you still have to assign points :)