HeaderPane
Main
Hide

SftMask/DLL 7.0 - Masked Edit Control

Share Link
Print

GetCharIndex

Returns the index of the character at a given location.

C

int SftMask_GetCharIndex(HWND hwndCtl, int xPos, int yPos);

C++

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

Parameters

hwndCtl

The window handle of the masked edit control.

xPos, yPos

The position, in client area coordinates (pixels).

Returns

The return value is the zero-based character index at the given location, or -1 if the location is not within the edit area's text.

See Also GetCharPos | HitTest | Hit-Testing


Last Updated 08/30/2026 - (email)
© 2026 Softel vdm, Inc.