The EM_CHARFROMPOS message retrieves the character index and line index of the character nearest a specified point in the client area of an edit control. The application can send this message to either an edit control or a rich edit control.如何理解?Return Values
The low word of the return value specifies the zero-based index of the character nearest the specified point. This index is relative to the beginning of the control, not the beginning of the line. If the specified point is beyond the last character in the edit control, the return value indicates the last character in the control.'如何理解? The high word of the return value specifies the zero-based index of the line that contains the character. For single-line edit controls, this value is zero. The index indicates the line delimiter if the specified point is beyond the last visible character in a line.'如何理解?