IInkDisp::InkDeleted
4/8/2010
Occurs when a stroke is deleted from the IInkDisp object.
Syntax
void InkDeleted([in] VARIANT StrokeIds);
Parameters
StrokeIds
[in] Specifies the integer array of stroke ID information for all of the strokes that have been deleted when this event occurs.For more information about the VARIANT structure, see Using the Automation Library with Windows Mobile Ink.
Remarks
If you use the IInkOverlay object (where IInkOverlay::EditingMode equals Delete and IInkOverlay::EraserMode equals StrokeErase) and pass the eraser over a stroke, you get the following sequence of events:
- InkDeleted
- InkAdded
- InkDeleted
The additional IInkDisp::InkAdded and InkDeleted events occur because the underlying code adds an internal, invisible stroke to track the eraser.
This event method is defined in the _IInkEvents interface. The _IInkEvents interface implements the IDispatch interface with an identifier of DISPID_IEInkDeleted.
The InkDeleted event is fired even when in select or erase mode, not just when inserting ink. This requires that you monitor the editing mode (which you are responsible for setting) and be aware of the mode before interpreting the event. The advantage of this requirement is greater freedom to innovate on the platform through greater awareness of platform events.
Requirements
Header | msinkaut.h |
Windows Embedded CE | Windows CE 5.0 and later |
Windows Mobile | Windows Mobile 6 Classic and later, Windows Mobile 6 Professional and later |