Solved

Switching Between View in MDI

Posted on 2003-10-30
6
228 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
[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
  • 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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

717 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