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;
hwndCtl
The window handle of the masked edit control.
xPos, yPos
The position, in client area coordinates (pixels).
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