Re: How to change ALL comma in a CEdit into double byte comma?

Tech-Archive recommends: Fix windows errors by optimizing your registry



I would make sure the program is compiled to use Unicode.
Then modify the strings to contain the characters you need before adding them to the edit controls (before call to SetWindowText())

If you need to modify it while the user is typing then you could create an OnChar() handler to check each character as it is typed and replace it with whatever you'd like. If you need to turn one character into two you could just call CEdit::OnChar(...) twice from your OnChar routine (the one in the base class).

http://support.microsoft.com/kb/92394

Tom

"Landon" <Landon@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:8B58BBD7-A9AB-42A3-BFAD-FD1152472FFF@xxxxxxxxxxxxxxxx
Hi, I use Visual C++ 4.2.

I've got questions here:

I have to change an application behavior here, there is a CEdit in the
application which receive user input. The change I should make is :

If there is a comma ( , ) character, I must change it into double-byte comma
( usually in Kanji / Japanese writing )

How to change those all comma characters to <space> character?

Thank you very much.


.



Relevant Pages