🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4184

Re: Continuing problem with SendMessage and WM_CCOPYDATA

#4184
From: Remy Lebeau (TeamB)
Date: Tue, 28 Feb 2006 19:19
15 lines
1610 bytes
"JD" <nospam@nospam.com> wrote in message
news:44048bdc$1@newsgroups.borland.com...

> How can you be sure that FindWindow returns the first
> instance v/s the instance in which that block is executing?

By not specifying only the class name when calling FindWindow().  Specify
the window title as well, and then change the window title of the current
process before enumerating the windows.  All the more reason to look for the
TApplication window instead of a TForm window, since you have access to the
TApplication::Title property.


Gambit
Technical Details
Message-ID: <4404a212$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44021981$1@newsgroups.borland.com> <44024219$1@newsgroups.borland.com> <44046dac$1@newsgroups.borland.com> <4404752a$1@newsgroups.borland.com> <44048bdc$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6afbc9bf5041d787
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <44021981$1@newsgroups.borland.com> <44024219$1@newsgroups.borland.com> <44046dac$1@newsgroups.borland.com> <4404752a$1@newsgroups.borland.com> <44048bdc$1@newsgroups.borland.com>
Subject: Re: Continuing problem with SendMessage and WM_CCOPYDATA
Date: Tue, 28 Feb 2006 11:19:37 -0800
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <4404a212$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1141154322 68.69.17.41 (28 Feb 2006 11:18:42 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail