I'm using PB 2017 R3. Can anyone please suggest a way to determine the line number of the text under the mouse pointer in a richtextedit control? SelectedLine or Position won't do it for me as the mouse pointer's position won't necessarily be the same as the RTE's SelectedStart. I've started with using EM_CHARFROMPOS in SendMessage in the mousemove event of the RTE but, SendMessage(Handle(this), 215, 0, lstr_point) always return a 0. Please note I don't want to change SelectedStart to where the mouse pointer is just to get the line number.
Thanks in advance.