Re: How to change ALL comma in a CEdit into double byte comma?
- From: "Tom Serface" <tom.nospam@xxxxxxxxxxxxx>
- Date: Wed, 11 Jun 2008 06:44:22 -0700
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.
.
- Prev by Date: Re: My application can not compatible with anti-virus
- Next by Date: Re: How to detect Enter character in a text?
- Previous by thread: VC6: unresolved external (template fn) ...!?
- Next by thread: Re: How to change ALL comma in a CEdit into double byte comma?
- Index(es):
Relevant Pages
|