ItEv_FindControlByPos 

Use

Finds a control on the screen based on its position.

Syntax

DWORD DLEX ItEv_FindControlByPos (PIT_EVENT pEvt, long top, long left);

Parameters

pEvt

Pointer to the IT_EVENT structure

top

Row number for the position in character coordinates

left

Column number for the position in character coordinates

The top and left coordinates are relative to the parent control by default, unless you have used one of the connection flags to change the way coordinates are specified.

Return Value

This call returns the control index for a given location (top and left). The index is zero-based. If the control is not found, then 1 will be returned.

See Also

ItEv_FindControl.