Hi! everyone:
When I select a block text in the richedit control, and want to convert upper case/lower case of selected text, but I don't know which message I should send to richedit?

dREAMtHEATER
Posted on 2002-04-26 11:53:04 by dREAMtHEATER
Get a pointer to the text buffer and use CharLowerBuff / CharUpperBuff.
Posted on 2002-04-26 12:00:52 by bitRAKE
Hi dREAMtHEATER

Use EM_GETSELTEXT to get text into buffer, do the conversion and EM_REPLACESEL to put it back.

KetilO
Posted on 2002-04-26 12:06:05 by KetilO
Hi! KetilO:
How do U do the conversion, I know u don't use CharLowerBuff / CharUpperBuff, in addation, if the user select a big block text to convert, how do u allocate the memory? use GlobalAlloc or something other, can u give me detailed explanation? Thanks

dREAMtHEATER
Posted on 2002-04-27 09:05:27 by dREAMtHEATER
Hi dREAMtHEATER

I use ClobalAlloc, and since I don't care about national charsets I use a simple ascii convert (>=A and <=Z).

KetilO
Posted on 2002-04-27 13:02:06 by KetilO