Solved

Switching Between View in MDI

Posted on 2003-10-30
6
195 Views
Last Modified: 2013-11-20
Hi all,

I have got a small problem when i was workin on MDI application. My requirement is that i have Two view each of diffrent type (i.e., one view is derived from CView and other derived from CEditView) and i have used a Single Document Class. I have to Switch between each of the views. How to do it? if any body can help me plz reply me fast.

0
Comment
Question by:rahulr_01
  • 3
6 Comments
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 35 total points
ID: 9649485
m_pwndMyView->SetFocus();
m_pwndMyView->SetForegroundWindow();

where m_pwndMyView is a pointer to the view you want to switch to.
0
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 9649492
Or do you mean one is visible and the other hidden?
Then

m_pwndMyView->ShowWindow(SW_SHOW); //to make visible or SW_HIDE to hide the window
would be required to show the hidden on then hide the previously visible one.
0
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 11849677
My comment would be a way to achieve the desired effect
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
only14 challenge 19 68
wait notify demo infinite loop 3 95
Unix Command -- Challenging  question 7 86
Annoying "thing" blocks my view 4 80
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

932 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now