G
Guest
In MFC, CRichEditCtrl contrl, I want to set the codepage for the control to
Unicode.
I used the following method to set codepage for it (only for ANSI or BIG5,
etc, not unicode). How should I change codepage to Unicode?
[Step 1]
Get the default character format. GetDefaultCharFormat(CHARFORMAT2& _cf)
[Step 2]
Modify received character format.
[Step 2.1]
Modify bCharSet, szFaceName, and dwMask member variables in _cf.
For the bCharSet, it should be one of the value of lfCharSet in LOGFONT
structure.
lfCharSet may be ANSI_CHARSET, CHINESEBIG5_CHARSET, TURKISH_CHARSET, etc.
I cannot find a value for Unicode.
[Step 3]
Set back to RichEdit Control. SetDefaultCharFormat(CHARFORMAT2& _cf).
Unicode.
I used the following method to set codepage for it (only for ANSI or BIG5,
etc, not unicode). How should I change codepage to Unicode?
[Step 1]
Get the default character format. GetDefaultCharFormat(CHARFORMAT2& _cf)
[Step 2]
Modify received character format.
[Step 2.1]
Modify bCharSet, szFaceName, and dwMask member variables in _cf.
For the bCharSet, it should be one of the value of lfCharSet in LOGFONT
structure.
lfCharSet may be ANSI_CHARSET, CHINESEBIG5_CHARSET, TURKISH_CHARSET, etc.
I cannot find a value for Unicode.
[Step 3]
Set back to RichEdit Control. SetDefaultCharFormat(CHARFORMAT2& _cf).