Ive figured out how to get the current line the caret of a rich text box is on, but how do i get the column number?
Posted on 2001-03-20 18:09:00 by HeroInc
This worked for me.

chrg     CHARRANGE<>
invoke SendMessage,hRichEdit,EM_EXGETSEL,0,addr chrg
invoke SendMessage,hRichEdit,EM_LINEINDEX,-1,0
sub    chrg.cpMin,eax
chrg.cpMin now contains the column number
Posted on 2001-03-20 19:21:00 by anon
Thanks, that was exactly what i was looking for.
Posted on 2001-03-21 01:20:00 by HeroInc