?
Solved

Switching Between View in MDI

Posted on 2003-10-30
6
Medium Priority
?
235 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 140 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

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

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

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month11 days, 9 hours left to enroll

752 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