Article View: borland.public.cppbuilder.nativeapi
Article #1360Re: WM_COPYDATA problem
From: JD
Date: Mon, 03 Sep 2007 09:18
Date: Mon, 03 Sep 2007 09:18
21 lines
1517 bytes
1517 bytes
anon5 <bogus@mail.com> wrote:
>
Please trim your posts.
> [...] I now have another problem however. The call to
> FindWindow() to get the form's handle relies on the form's
> caption being a predefined value.
I would suggest that you give the MainForm a unique
name instead ... something like instead of TForm1,
TCompanyNameAppName. This will enable you to find the
HWND using it's class name instead of it's Caption.
For more, see my reply in the VCL.using group under
'SingleInst problem' or click here:
http://tinyurl.com/2b2n35
~ JD
Technical Details
Message-ID:
<46dbd148$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<46db6544$1@newsgroups.borland.com> <46dbad32$1@newsgroups.borland.com> <46dbc9d0$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ae849346afde0161 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "JD" <nospam@nospam.com> Sender: "JD" <nospam@nospam.com> Reply-To: "JD" <nospam@nospam.com> Subject: Re: WM_COPYDATA problem Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 64.12.116.144 X-Forwarded-For: 172.166.194.39 References: <46db6544$1@newsgroups.borland.com> <46dbad32$1@newsgroups.borland.com> <46dbc9d0$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <46dbd148$1@newsgroups.borland.com> Date: 3 Sep 2007 02:18:00 -0700 X-Trace: newsgroups.borland.com 1188811080 207.105.83.66 (3 Sep 2007 02:18:00 -0700) Lines: 22 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail