BOOL TranslateMDISysAccel(hWndClient,lpMsg)
This function processes keyboard accelerators for multiple document interface (MDI) child window System-menu commands. The TranslateMDISysAccel function translates WM_KEYUP and WM_KEYDOWN messages to WM_SYSCOMMAND messages. The high-order word of the lParam parameter of the WM_SYSCOMMAND message contains the value 1 to differentiate the message from messages sent by menus or controls.
Parameter | Type/Description |
hWndClient | HWND Identifies the parent MDI client window. | |
lpMsg | LPMSG Points to a message retrieved by using the GetMessage or PeekMessage function. The message must be an MSG data structure and contain message information from the Windows application queue. |
The return value is TRUE if the function translated a message into a system command. Otherwise, it is FALSE.