Jump to content

JournalRecordHook

From EDM2
Revision as of 17:20, 13 April 2025 by Martini (talk | contribs) (Created page with "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 messa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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);