PE_BEGININPUT

Begins default input processing. Submessage of WM_PENEVENT.

Parameters

wParam

PE_BEGININPUT

lParam

The high-order word is the handle of the window in which the pen first touched down, and the low-order word is the event reference identifier returned from GetMessageExtraInfo3P040HC.

Return Value

Returns PCMR_OK if successful; otherwise, it returns one of the following values:

Constant

Description

PCMR_ALREADYCOLLECTING

StartPenInput1AOCU6 has already been called for this session.

PCMR_APPTERMINATED

The application terminated input.

PCMR_ERROR

Parameter or unspecified error.

PCMR_INVALID_PACKETID

A packet identifier is invalid.

PCMR_SELECT

Press-and-hold action was detected. Collection is not started.

PCMR_TAP

A tap was detected. Collection is not started.

 

Comments

A control can initiate default pen-input processing by sending this message to its parent. If the parent allows the message to be processed by passing it to DefWindowProc32D1NBH, default pen-input behavior begins. The DoDefaultPenInput1AOBU. function uses this technique.

For further information about default processing, refer to Chapter 2,  Starting Out with System Defaults. 

See Also

DoDefaultPenInput