CMDIFrameWnd::MDIGetActive
Visual Studio 2012
Retrieves the current active MDI child window, along with a flag indicating whether the child window is maximized.
CMDIChildWnd* MDIGetActive( BOOL* pbMaximized = NULL ) const;
See the example for CMDIChildWnd::MDIMaximize.