A quite complicated solution : Use GetSel to retrieve the caracter number. Make a loop on LineFromChar with parameter the character number, which you decrement until LineFromChar changes. Then, the first number minus the final one should give you the pos.
long int i,j;
m_RichEditCtrl.GetSel(&i,&j);
i=(i
~RaGE();