◄Up► ◄Next► ◄Previous► ──────────────────────────────────────────────────────────────────────────── #define INCL_WINMESSAGEMGR WM_HELP usCmd = (USHORT) SHORT1FROMMP(mp1); /* command value */ fsSource = (USHORT) SHORT1FROMMP(mp2); /* source type */ fPointer = (BOOL) SHORT2FROMMP(mp2); /* pointer flag */ The WM_HELP message is sent when a keystroke is translated by an accelerator table into a WM_HELP message. A WM_HELP message can also be posted by menu controls and buttons, if they have the appropriate style. The WM_HELP message is identical to the WM_COMMAND message, but WM_HELP implies that the application should respond by displaying help information. Parameter Description ──────────────────────────────────────────────────────────────────────────── usCmd Low word of mp1. Specifies the command value. fsSource Low word of mp2. Specifies the source type. This parameter can be one of the following values: Value Meaning ───────────────────────────────────────────────────────────────── CMDSRC_ACCELERATOR Posted as the result of an accelerator. The usCmd parameter is the accelerator command value. CMDSRC_MENU Posted by a menu control. The usCmd parameter is the identifier of the menu item. CMDSRC_PUSHBUTTON Posted by a push-button control. The usCmd parameter is the window identifier of the push button. CMDSRC_OTHER Other source. The usCmd parameter gives further control-specific information defined for each control type. fPointer High word of mp2. Indicates whether the message was posted as a result of a pointing-device (mouse) operation. A value of TRUE indicates a pointing device was used; FALSE indicates a keyboard operation. Return Value An application should return zero if it processes this message. See Also WM_COMMAND, WM_MENUSELECT, WM_TRANSLATEACCEL ♦