BOOL TranslateMDISysAccel(hwndClient, lpMsg) | |||||
HWND hwndClient; | /* handle of parent MDI client window | */ | |||
LPMSG lpMsg; | /* address of structure with message data | */ |
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.
hwndClient
Identifies the parent MDI client window.
lpMsg
Points to a message retrieved by using the GetMessage or PeekMessage function. The message must be an MSG 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.
GetMessage, PeekMessage, TranslateAccelerator