BOOL TranslateMDISysAccel(hwndClient, lpmsg) | |||||
HWND hwndClient; | /* handle of parent MDI client window | */ | |||
MSG FAR* lpmsg; | /* address of structure with message data | */ |
The TranslateMDISysAccel function processes accelerator keystrokes for the given multiple document interface (MDI) child window. The function translates WM_KEYUP and WM_KEYDOWN messages to WM_SYSCOMMAND messages.
hwndClient
Identifies the parent MDI client window.
lpmsg
Points to an MSG structure retrieved by a call to the GetMessage or PeekMessage function. The structure contains message information from the application's message queue. The MSG structure has the following form:
typedef struct tagMSG { /* msg */
HWND hwnd;
UINT message;
WPARAM wParam;
LPARAM lParam;
DWORD time;
POINT pt;
} MSG;
For a full description of this structure, see the Microsoft Windows Programmer's Reference, Volume 3.
The return value is nonzero if the function is successful. Otherwise, it is zero.
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.