Hi,


I am sure I'm missing something.


I implemented a "find" on a Rich Edit control and I want to verify that the "found" word is visible.


I see how to get the current line and the first visible line, but how can I get the LAST VISIBLE LINE to know if the control needs scrolling.


I tried to get it using the EM_CHARFROMPOS (with LPARAM being the bottom left corner of the control) but it crashed the application. (in Win98)


Any help will be appreciated.


Thanks,


Eli