Solved

Open wnds in different size

Posted on 2001-08-07
6
189 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
  • 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
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.

 
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

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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.

861 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

24 Experts available now in Live!

Get 1:1 Help Now