Solved

State of child frame

Posted on 2001-06-12
2
221 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
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

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

Suggested Solutions

Title # Comments Views Activity
lucky13 challenge 11 120
isEverywhere  challenge 19 71
MaxSpan challenge 9 79
sumHeights  challenge 17 65
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 …
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.
A short film showing how OnPage and Connectwise integration works.

932 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

11 Experts available now in Live!

Get 1:1 Help Now