Article View: borland.public.cppbuilder.nativeapi
Article #16758Re: RichEdit and Unicode
From: MCh
Date: Sun, 27 Apr 2003 21:33
Date: Sun, 27 Apr 2003 21:33
48 lines
2799 bytes
2799 bytes
Thanks again . :-)) � "Remy Lebeau (TeamB)" <gambit47@yahoo.com> ������ ��� ������ news:3eac3eff$1@newsgroups.borland.com... > > "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/r icheditcontrols/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:
<3eac4ca3@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-08!supernews.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3eac2fd4@newsgroups.borland.com> <3eac3eff$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10cc67,fd8c9884bf909f6d X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-27 14:48:27 PST From: "MCh" <min_char@yahoo.gr> Newsgroups: borland.public.cppbuilder.nativeapi References: <3eac2fd4@newsgroups.borland.com> <3eac3eff$1@newsgroups.borland.com> Subject: Re: RichEdit and Unicode Date: Mon, 28 Apr 2003 00:33:24 +0300 Lines: 50 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 213.142.133.50 Message-ID: <3eac4ca3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1051479203 213.142.133.50 (27 Apr 2003 14:33:23 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail