RemovePenDataStrokes 

2.0     

Removes strokes from an HPENDATA object.

int RemovePenDataStrokes( HPENDATA hpndt, UINT iStrk, UINT cStrks )

Parameters

hpndt

Handle to the HPENDATA object.

iStrk

Zero-based index of the first stroke to remove. This value can be IX_END to remove the last stroke. The function fails if iStrk is greater than the number of strokes in the pen data object.

cStrks

Count of strokes to remove. If this value is greater than the number of strokes after the specified stroke index, the stroke indexed by iStrk and all following strokes are removed. cStrks can be IX_END to remove all strokes from iStrk onward.

Return Value

Returns PDR_OK if successful; otherwise, the return value can be one of the following negative values:

Constant

Description

PDR_COMPRESSED

Pen data is compressed.

PDR_ERROR

Parameter or other unspecified error.

PDR_MEMERR

Out of memory.

PDR_PNDTERR

Invalid pen data object.

PDR_STRKINDEXERR

Invalid stroke index.

PDR_VERSIONERR

Could not convert old pen data object.

 

Comments

RemovePenDataStrokes removes the number of strokes specified by cStrks, starting at the stroke specified by iStrk. Use ExtractPenDataPoints232HAGD to remove points from a particular stroke of the pen data object.

See Also

ExtractPenDataPoints, InsertPenDataPoints, InsertPenDataStroke