HeaderPane
Main
Hide
Share Link
Print

HitTest

Determines the control area at a given location.

C

int SftMask_HitTest(HWND hwndCtl, int xPix, int yPix);

C++

int CSftMask::HitTest(int xPos, int yPos) const;

Parameters

hwndCtl

The window handle of the masked edit control.

xPix, yPix

The position, in client area coordinates (pixels).

Returns

The return value identifies the area at the given location (see SFTMASK_AREA Constants), or -1 if no area matches.

See Also GetPosition | SFTMASK_AREA Constants | Components | Hit-Testing


Last Updated 09/26/2026 - (email)
© 2026 Softel vdm, Inc.