windows_programming_notes.nbk: Home | Index | Next Page: win32 msgs: WM_MDINEXT | Previous Page: win32 msgs: WM_MDIICONARRANGE


 win32 msgs: WM_MDIMAXIMIZE

An application sends the WM_MDIMAXIMIZE message to a multiple document interface (MDI) client window to maximize an MDI child window. The system resizes the child window to make its client area fill the client window. The system places the child window's window menu icon in the rightmost position of the frame window's menu bar, and places the child window's restore icon in the leftmost position. The system also appends the title bar text of the child window to that of the frame window.

To send this message, call the SendMessage function with the following parameters.

    SendMessage( 
      (HWND) hWnd,              // handle to destination window 
      WM_MDIMAXIMIZE,           // message to send
      (WPARAM) wParam,          // handle to child window (HWND)
      (LPARAM) lParam           // not used; must be zero
    );

Parameters

Return Values

The return value is always zero.

Remarks

If an MDI client window receives any message that changes the activation of its child windows while the currently active MDI child window is maximized, the system restores the active child window and maximizes the newly activated child window.

Requirements

  Windows NT/2000 or later: Requires Windows NT 3.1 or later.
  Windows 95/98/Me: Requires Windows 95 or later.
  Header: Declared in Winuser.h; include Windows.h.

windows_programming_notes.nbk: Home | Index | Next Page: win32 msgs: WM_MDINEXT | Previous Page: win32 msgs: WM_MDIICONARRANGE


Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time