|
StopPenInput
2.0
Terminates collection of pen input.
int StopPenInput( HPCM hpcm, UINT idEvent, int nTermReason )
Parameters
hpcm
Handle to the collection of the pen data gathered during the input session. HPCM stands for "handle to a pen collection mode."
idEvent
The identifier of the packet in the task-specific queue at which the pen input
should be terminated. If this value is PID_CURRENT, pen input stops
immediately (that is, at the latest position in the task queue) and no further input is
collected. The idEvent parameter is the low-order word of the value returned from the Windows GetMessageExtraInfo function when processing a WM_LBUTTONDOWN message.
nTermReason
The reason for termination. This value is passed to the termination message
PE_TERMINATED. It can be one of the following:
Constant
| Description
| PCMR_APPTERMINATED
| Application terminated input.
| PCMR_TERMBOUND
| Pen was pressed outside bounding rectangle or region.
| PCMR_TERMEX
| Pen was pressed inside exclusion rectangle or region.
| PCMR_TERMPENUP
| Pen was lifted from the tablet.
| PCMR_TERMRANGE
| Pen left the tablet's range of sensitivity.
| PCMR_TERMTIMEOUT
| Time-out expired.
|
Return Value
Returns PCMR_OK if successful; otherwise, the return value can be one of the
following:
Constant
| Description
| PCMR_INVALIDCOLLECTION
| The hpcm handle is invalid because the calling application did not start input with StartPenInput.
| PCMR_INVALID_PACKETID
| idEvent is invalid.
|
Comments
This function allows an application to explicitly terminate pen collection
without waiting for one of the conditions specified by StartPenInput in the dwPcm member of PCMINFO.
Due to the asynchronous nature of pen input messages, the application should
wait for the WM_PENEVENT message with wParam set to PE_TERMINATED to make sure that the pen input process has completely
terminated. This does not apply if the application is using the polling method of
pen input.
See Also
StartPenInput
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|