Article View: borland.public.cppbuilder.internationalization
Article #720Re: Edit Box
From: Maris Janis Vasilevskis
Date: Mon, 10 Feb 2003 08:15
Date: Mon, 10 Feb 2003 08:15
18 lines
1712 bytes
1712 bytes
KC wrote:
>
> I tried to do window subclassing. I managed to get chinese text displayed in
> the messagebox. I tried to set the caption of the main form (TForm) but it
> didn't displayed it properly. I used Win32 API
>
> void __fastcall TForm1::Button1Click
> {
> SetWindowTextW(this->Handle, ..);
> }
>
> Can someone help ? Thanks.
Your main form is a non Unicode window. There is no sense in sending Unicode W-messages to such windows, MS translates them into corresponding A-messages before execution.
To have fully functional SetWindowTextW, you should send it to TTntForm.
Mahris
Technical Details
Message-ID:
<3E475FA8.E11BA70A@myself.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e38e687@newsgroups.borland.com> <3e38fc1c$1@newsgroups.borland.com> <3e39fc29@newsgroups.borland.com> <3E3A00EE.4090102@pspl.co.in> <3e3abace$1@newsgroups.borland.com> <3e46811b@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10297d,8160627fcd9505d8 X-Google-Attributes: gid10297d,public X-Google-ArrivalTime: 2003-02-10 00:06:31 PST Message-ID: <3E475FA8.E11BA70A@myself.com> Date: Mon, 10 Feb 2003 10:15:36 +0200 From: Maris Janis Vasilevskis <mahris@myself.com> X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internationalization Subject: Re: Edit Box References: <3e38e687@newsgroups.borland.com> <3e38fc1c$1@newsgroups.borland.com> <3e39fc29@newsgroups.borland.com> <3E3A00EE.4090102@pspl.co.in> <3e3abace$1@newsgroups.borland.com> <3e46811b@newsgroups.borland.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 195.13.227.129 X-Trace: newsgroups.borland.com 1044864286 195.13.227.129 (10 Feb 2003 00:04:46 -0800) Lines: 18 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail