Solved

State of child frame

Posted on 2001-06-12
2
237 Views
Last Modified: 2013-11-20
Hi,
How can I know the state (maximize, minimze or normal)of a child frame window in a MDI application ?

thanks,
Iris.
0
Comment
Question by:irisz
[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
2 Comments
 
LVL 2

Accepted Solution

by:
MadYugoslav earned 20 total points
ID: 6184840
If you want to know what MDI child is active call
GetActive from MainFrame MDI window.
Id you want to know for specific MDI child frame call
(CWnd member) function GetWindowPlacement(WINDOWPLACEMENT*).
In structure WINDOWPLACEMENT member showCmd specifies the current show state of the window.
0
 
LVL 42

Expert Comment

by:sedgwick
ID: 6184988
if u wanna know only if the window is minimized use
IsIconic() which specifies whether CWnd is minimized.(iconic).

if u need to llok for the rest of window style,
use this code:

     WINDOWPLACEMENT  wndPlacement;
     GetWindowPlacement(&wndPlacement);
     switch(wndPlacement.showCmd){
     case SW_MINIMIZE:

     case SW_HIDE:

     case SW_RESTORE:

     case SW_MAXIMIZE:

     }

good luck
0

Featured Post

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

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

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…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

617 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