Solved

Switching view dynamically

Posted on 2000-04-20
4
160 Views
Last Modified: 2013-11-20
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!!!
0
Comment
Question by:waho
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 9

Expert Comment

by:ShaunWilde
ID: 2734116
> 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
0
 
LVL 3

Accepted Solution

by:
V_Bapat earned 50 total points
ID: 2734299
Here is the link to the page containing the source for what you want.
You will find here a class derived from CSplitterWnd which
1. shows/hides rows or columns of a static splitter window and
2. switches/replaces views.

http://codeguru.developer.com/mfc/comments/7113.shtml
0
 

Author Comment

by:waho
ID: 2739335
I have got a solution from ShaunWilde! Anyway thank you for your(V_Bapat) proposed solution!
0
 
LVL 9

Expert Comment

by:ShaunWilde
ID: 2739593
you still have to assign points :)
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
no14 challenge 14 73
abstract class with all non abstract mentods 6 84
Updating statistics with error notification email in SQL server 4 120
Way to decrease size of apk file 9 109
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question