An application sends the WM_MDIGETACTIVE message to a multiple document interface (MDI) client window to retrieve the handle of the active MDI child window.
WM_MDIGETACTIVE wParam = 0; // not used; must be zero lParam = (LPBOOL) lpfMaximized; // optional pointer to maximized state flag
The return value is the handle of the active MDI child window.
Note carefully a change in how this message indicates maximization. In Windows version 3.x, the message return value includes a flag indicating whether the MDI child window is maximized. In the Win32 application programming interface (API), the return value does not include this flag. In Win32, the MDI child window’s maximized state is indicated by setting a BOOL variable via the optional parameter in lParam, lpfMaximized.