🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internationalization
Article #721

Re: Edit Box

#721
From: KC
Date: Tue, 11 Feb 2003 11:46
28 lines
2065 bytes
But my existing application is not derived from TTntForm. Does it mean that
there's no way I can make it work unless I derive or use TTntForm or other
unicode enabled "TForm" ?

"Maris Janis Vasilevskis" <mahris@myself.com> wrote in message
news:3E475FA8.E11BA70A@myself.com...
> 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: <3e48e2b3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
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> <3E475FA8.E11BA70A@myself.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-11 04:09:56 PST
From: "KC" <pine73@icqmail.com>
Newsgroups: borland.public.cppbuilder.internationalization
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> <3E475FA8.E11BA70A@myself.com>
Subject: Re: Edit Box
Date: Tue, 11 Feb 2003 19:46:30 +0800
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 219.93.117.110
Message-ID: <3e48e2b3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1044964019 219.93.117.110 (11 Feb 2003 03:46:59 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail