Link to home
Start Free TrialLog in
Avatar of irisz
irisz

asked on

State of child frame

Hi,
How can I know the state (maximize, minimze or normal)of a child frame window in a MDI application ?

thanks,
Iris.
ASKER CERTIFIED SOLUTION
Avatar of MadYugoslav
MadYugoslav
Flag of Serbia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Meir Rivkin
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