Solved

Open wnds in different size

Posted on 2001-08-07
6
192 Views
Last Modified: 2013-11-20
Hi,

I have a MDI application and I always open several views at once. But when I minimized one of the views I had opened, all other views were minimized too. It was not matter until I need one of them to be opened in maximized mode. How could I carry out this. Which method could I get the state of the window?

Thanks.
0
Comment
Question by:mauling
[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
  • 2
6 Comments
 
LVL 6

Expert Comment

by:MichaelS
ID: 6362707
>But when I minimized one of the views
>I had opened, all other views were minimized too

Sounds strange, can you show your code?
0
 
LVL 9

Expert Comment

by:Pacman
ID: 6363393
what do you mean "minimize a view" ? MDI child window ?
0
 

Author Comment

by:mauling
ID: 6363584
Sorry, not exactly minimized, but put into the normal state, the default size which is opened each frame.

Unfortunately, I have no code to open a window, because I just use the default resource that MFC give to me.

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 9

Accepted Solution

by:
Pacman earned 100 total points
ID: 6363668
Assuming you mean the MDI child windows when saying "views".
You open 5 MDI childs which are initially displayed in mode SW_NORMAL, right?
Now you click the maximize button of one of them. That window will be maximized.
Now all your MDI childs will be showed maximized.
If you "restore" one of them then all windows will be restored.
That's the windows MDI concept and absolutely ok.

If you want only one "big window" then change its size to full size (parent's client area) instead of clicking the maximize button.
0
 
LVL 9

Expert Comment

by:Pacman
ID: 6363672
YOu can do this by calling MoveWindow()
0
 

Author Comment

by:mauling
ID: 6364404
I had overrided the PreCreateWindow to change the style of that it informing it to open at maximized size, but it seems have no effect when the others are in normal size.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Is it possible to combine several text files into one big one? (redhat v5 enterprise) 4 110
sameEnds challenge 3 187
firstChar challenge 13 132
unix example issues 18 106
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: 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.

756 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