IInkOverlay::HitTestSelection method (msinkaut.h)

Determines what portion of the selection was hit during a hit test.

Syntax

HRESULT HitTestSelection(
  [in]  long               x,
  [in]  long               y,
  [out] SelectionHitResult *SelArea
);

Parameters

[in] x

The x-position, in pixels, of the hit test.

[in] y

The y-position, in pixels, of the hit test.

[out] SelArea

The value from the SelectionHitResult enumeration,which specifies which part of a selection, if any, was hit during a hit test.

Return value

Return code Description
East
The east side sizing handle was hit.
None
No part of the selection was hit.
North
The north side sizing handle was hit.
Northeast
The northeast corner sizing handle was hit.
Northwest
The northwest corner sizing handle was hit.
Selection
The selection itself was hit (no selection handle was hit).
South
The south side sizing handle was hit.
Southeast
The southeast corner sizing handle was hit.
Southwest
The southwest corner sizing handle was hit.
West
The west side sizing handle was hit.

Requirements

Requirement Value
Minimum supported client Windows XP Tablet PC Edition [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header msinkaut.h
Library InkObj.dll

See also

IInkOverlay

InkOverlay Class

SelectionHitResult Enumeration