TranslateMDISysAccel function (winuser.h)

Processes accelerator keystrokes for window menu commands of the multiple-document interface (MDI) child windows associated with the specified MDI client window. The function translates WM_KEYUP and WM_KEYDOWN messages to WM_SYSCOMMAND messages and sends them to the appropriate MDI child windows.

Syntax

BOOL TranslateMDISysAccel(
  [in] HWND  hWndClient,
  [in] LPMSG lpMsg
);

Parameters

[in] hWndClient

Type: HWND

A handle to the MDI client window.

[in] lpMsg

Type: LPMSG

A pointer to a message retrieved by using the GetMessage or PeekMessage function. The message must be an MSG structure and contain message information from the application's message queue.

Return value

Type: BOOL

If the message is translated into a system command, the return value is nonzero.

If the message is not translated into a system command, the return value is zero.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header winuser.h (include Windows.h)
Library User32.lib
DLL User32.dll

See also