JournalRecordHook
Appearance
This hook records user-input messages.
Syntax
JournalRecordHook(hab, pQmsg);
Parameters
- hab (HAB) - input
- Anchor-block handle.
- pQmsg (PQMSG) - input
- Data structure that contains the message to be recorded.
- The time field of the QMSG structure is also set when the hook is called.
Returns
There is no return value for this hook.
Remarks
This hook is called after raw input is translated to WM_CHAR or WM_BUTTON1DBLCLK messages.
The next hook in the chain is always called, and the message is always passed to the application.
JournalPlaybackHook hook does not receive any input played back by this hook. This prevents feedback situations where input is played back a number of times.
Related Messages
Example Code
#define INCL_WINHOOKS /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HAB hab; /* Anchor-block handle. */ PQMSG pQmsg; /* Data structure that contains the message to be recorded. */ JournalRecordHook(hab, pQmsg);