STROKEINFO 

1.0    2.0     

Contains information about a sequence of pen data.

typedef struct { 

     UINT cPnt;

     UINT cbPnts;

     UINT wPdk;

     DWORD dwTick;

} STROKEINFO;

 

Members

cPnt

Count of points in the stroke.

cbPnts

Used internally to contain length of compressed data. Applications should ignore this value.

wPdk

State of the stroke, expressed as a PDK_ value.

dwTick

Time at beginning of the stroke. dwTick holds the number of milliseconds that have elapsed since the system tick reference that Windows determines at startup.

 

Comments

The STROKEINFO structure serves two main purposes. First, it is returned by the  GetPenHwEventData1AOBY6 functions with each piece of new data from the tablet. Second, it is used in certain pen data functions such as AddPenInputHRC232HALC, AddPointsPenData232HACD, and GetPenDataStroke232HAID as a header for each stroke. In both cases, it contains information about a sequence of data from the tablet.

For examples and further information about STROKEINFO and its members, see the section  Recognition Functions  in Chapter 8,  Writing a Recognizer. 

For a list of stroke state bits, refer to the entry for PDK_ values in Chapter 13,  Pen Application Programming Interface Constants. 

See Also

AddPenInputHRC, GetPenInput, InsertPenDataStroke, TargetPoints