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
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
Get a pointer to the text buffer and use CharLowerBuff / CharUpperBuff.
Hi dREAMtHEATER
Use EM_GETSELTEXT to get text into buffer, do the conversion and EM_REPLACESEL to put it back.
KetilO
Use EM_GETSELTEXT to get text into buffer, do the conversion and EM_REPLACESEL to put it back.
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
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
Hi dREAMtHEATER
I use ClobalAlloc, and since I don't care about national charsets I use a simple ascii convert (>=A and <=Z).
KetilO
I use ClobalAlloc, and since I don't care about national charsets I use a simple ascii convert (>=A and <=Z).
KetilO