Solved

State of child frame

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 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

14 Experts available now in Live!

Get 1:1 Help Now