TargetPoints 

2.0     

Determines the target to which pen data belongs.

int TargetPoints( LPTARGINFO lptarginfo, LPPOINT lppt, DWORD dwReserved, UINT fuReserved, LPSTROKEINFO lpsi )

Parameters

lptarginfo

Address of a targeting data TARGINFO232HBIC structure.

lppt

Address of a buffer of POINT44VP0_ structures in tablet coordinates.

dwReserved

This parameter is reserved for future use and its value is ignored.

fuReserved

This parameter is reserved for future use and its value is ignored.

lpsi

A pointer to a STROKEINFO1AOCY9 structure. This structure holds information about the stroke being targeted.

Return Value

Returns an array index, starting from 0, of the target in the rgTarget array of the TARGINFO232HBIC structure, if successful. If no suitable target is found, or if there are no points to target, TargetPoints returns -1.

Comments

To select the desired targeting behavior, the application should set the dwFlags member of the TARGINFO structure that lptarginfo points to.

See Also

GetPenInput, TARGET