IInkDisp::HitTestCircle method (msinkaut.h)
Retrieves the InkStrokes collection that are either completely inside or intersected by a known circle.
HRESULT HitTestCircle( long X, long Y, float radius, IInkStrokes **Strokes );
The x-position of the center of the hit test circle in ink space units.
The y-position of the center of the hit test circle in ink space units.
The radius of the circle to use in the hit test, in ink space units.
When this method returns, contains the collection of strokes that are either completely inside or intersected by the specified circle.
This method can return one of these values.
||A parameter contained an invalid pointer.|
||An exception occurred inside the method.|
||Invalid display handle.|
||Unexpected parameter or property type.|
If a stroke intersects the circle, the complete stroke is returned.
The method computes the intersection, considering the full set of drawing attributes that apply to the stroke, including the full pen width, Bezier smoothing (if present), and shape of the pen tip.
After a rotation or shear transform has been performed on a stroke or a collection of strokes, the transformed
y- coordinates are no longer concentric with the original coordinates. Because of this, the
radius argument should not be calculated from the
The application must always pass in a destination pointer for the resulting collection of strokes. If there are no intersections, the collection has a count of zero.
|Minimum supported client||Windows XP Tablet PC Edition [desktop apps only]|
|Minimum supported server||None supported|