Hello

I want to add a return after inserting a line into Richedit, so the Richedit
field sets focus to a new line.
In C i would do it like this:


[color=green]SendMessage(hRichEdit,EM_REPLACESEL,TRUE,"\r\n"); [/color]


but whats the translation for \r\n in assembler ?
10,13 ?
and how would i add such a 10,13 successfully to a richeditbox ?

thanks


Ranma
This message was created in my Messageboard Editor v3.0 - written in pure assembly
Posted on 2003-10-22 08:01:43 by Ranma_at
Maybe this way:


szCRLF db 13,10,0

invoke SendMessage, hRichEdit, EM_REPLACESEL, TRUE, offset szCRLF
Posted on 2003-10-22 08:18:15 by Morris
thanks for the hint, i was stupid...

this is even better:



szCRLF db 0Dh,0Ah,0

invoke SendMessage,hRichEdit,EM_REPLACESEL,TRUE,offset szCRLF
invoke SetFocus,hRichEdit


Ranma
This message was created in my Messageboard Editor v3.0 - written in pure assembly
Posted on 2003-10-22 08:31:51 by Ranma_at