TranslateMDISysAccel function

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 WINAPI TranslateMDISysAccel(
  _In_  HWND hWndClient,
  _In_  LPMSG lpMsg
);

Parameters

hWndClient [in]

Type: HWND

A handle to the MDI client window.

lpMsg [in]

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:

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.

Examples

For an example, see Writing the Main Message Loop.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

Library

User32.lib

DLL

User32.dll

See also

Reference
GetMessage
PeekMessage
TranslateAccelerator
MSG
WM_KEYDOWN
WM_KEYUP
WM_SYSCOMMAND
Conceptual
Multiple Document Interface

 

 

Community Additions

ADD
Show:
© 2014 Microsoft