Hehe, I can tell how to get it in VC,
you can find the proper way in Delphi also:
// Let's suppose hRTFWnd is the handle of your RichEdit
int iRow, iCol;
CHARRANGE cr;
// Find out the position of the caret (if a selection is set,
// use the endpoint of the selection).
SendMessage( hRTFWnd, EM_EXGETSEL, 0, (LPARAM)&cr );
// Figure the row and column
iRow = (int)SendMessage( hRTFWnd, EM_EXLINEFROMCHAR, 0, (LPARAM)(cr.cpMax) );
iCol = (int)(cr.cpMax - (int)SendMessage ( hRTFWnd, EM_LINEINDEX, iRow, 0 ) );