If I click inside a TRichEdit control, how can I get the Line index (I clicked on) from the mouse client coordinates?
In other words, how do I convert a client coordinate to a Line Index?
***EDIT I'm actually not clicking inside the TRichEdit control, I'm clicking in another control and need to synch with the TRichEdit control's line number.
Send
EM_CHARFROMPOS
andEM_LINEFROMCHAR
messages to the RichEdit, eg: