Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Open wnds in different size

Posted on 2001-08-07
6
Medium Priority
?
196 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
Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

 
LVL 9

Accepted Solution

by:
Pacman earned 300 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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 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.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

688 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