Rediger

Del via


WM_MDIDESTROY message

An application sends the WM_MDIDESTROY message to a multiple-document interface (MDI) client window to close an MDI child window.

#define WM_MDIDESTROY                   0x0221

Parameters

wParam

A handle to the MDI child window to be closed.

lParam

This parameter is not used.

Return value

Type: zero

This message always returns zero.

Remarks

This message removes the title of the MDI child window from the MDI frame window and deactivates the child window. An application should use this message to close all MDI child windows.

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

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Winuser.h (include Windows.h)

See also

Reference

WM_MDICREATE

Conceptual

Multiple Document Interface