Article View: borland.public.cppbuilder.nativeapi
Article #16757Re: RichEdit and Unicode
From: Remy Lebeau (TeamB)
Date: Sun, 27 Apr 2003 20:36
Date: Sun, 27 Apr 2003 20:36
36 lines
2488 bytes
2488 bytes
"MCh" <min_char@yahoo.gr> wrote in message
news:3eac2fd4@newsgroups.borland.com...
> If I create a RichEdit control using CreateWindow -in
> runtime - ,will be possible to use Unicode characters in it?
Yes, if you create the control using CreateWindowExW() and the "RichEdit20W"
class name.
> Microsoft's RichEdit version 2 (Riched20.dll) supports unicode.
Yes. However, Microsoft does make the following comments about it that you
should be careful of:
http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/richedit/richeditcontrols/aboutricheditcontrols.asp
Rich Edit 2.0 includes the following features in addition to the
features provided by Rich Edit Version 1.0.
Unicode
Unicode eases the effort in handling international text. However effort
is needed to maintain compatibility with existing non-Unicode documents-that
is, the ability to convert to/from non-Unicode plain and rich text. Also,
substantial effort is needed to run correctly on Windows 95/98/Me.
In Rich Edit 2.0, if you create a Unicode rich edit control (one that
expects Unicode text messages), you must specify only Unicode data in any
window messages sent to the control. Similarly, if you create an ANSI rich
edit control, send only ANSI or double-byte character set (DBCS) data. You
can use the IsWindowUnicode function to determine whether a rich edit
control uses Unicode text messages. Note that the rich edit COM interfaces
use Unicode text unless they encounter a code page argument.
Gambit
Technical Details
Message-ID:
<3eac3eff$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3eac2fd4@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,fd8c9884bf909f6d X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-27 13:41:32 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3eac2fd4@newsgroups.borland.com> Subject: Re: RichEdit and Unicode Date: Sun, 27 Apr 2003 13:36:26 -0700 Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3eac3eff$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1051475711 207.175.226.26 (27 Apr 2003 13:35:11 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail