This topic has not yet been rated - Rate this topic

TranslateMDISysAccel function

Applies to: desktop apps only

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

Minimum supported server

Windows 2000 Server

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

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ