Send a EM_EXGETSEL message to get the position in the text.
Send a EM_EXLINEFROMCHAR message to convert the text position to a line
number and send a EM_LINEINDEX message to get the position of the start of the
line to get the position within the line.
-GJC [MS Windows SDK MVP]
-Software Consultant (Embedded systems and Real Time Controls)