Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 200
  • Last Modified:

Open wnds in different size

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
mauling
Asked:
mauling
  • 3
  • 2
1 Solution
 
MichaelSCommented:
>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
 
PacmanCommented:
what do you mean "minimize a view" ? MDI child window ?
0
 
maulingAuthor Commented:
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
PacmanCommented:
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
 
PacmanCommented:
YOu can do this by calling MoveWindow()
0
 
maulingAuthor Commented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now