Article View: borland.public.cppbuilder.nativeapi
Article #14482Re: Working With Clipboard !!
From: DRE
Date: Tue, 12 Aug 2003 08:28
Date: Tue, 12 Aug 2003 08:28
35 lines
1989 bytes
1989 bytes
Yes, I got the message
I was passing the application handle instead of the form's one. and Now when
I fixed this it is working fine
Thanks
"Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message
news:3f37d3fc$1@newsgroups.borland.com...
>
> "DRE" <dre00x@yahoo.com> wrote in message
> news:3f378281@newsgroups.borland.com...
>
> > void __fastcall TForm1::Button2Click(TObject *Sender)
> > {
> > HwNd = SetClipboardViewer(Application->Handle);
> > }
>
> That should be using the form's Handle, not the Application's:
>
> HwNd = SetClipboardViewer(Handle);
>
> > the problem is that when I run the application it does nothing after I
> > execute the SetClipboardViewer().
>
> That is because you used the wrong Handle when calling
SetClipboardViewer(),
> so the messages are going to the wrong place, you are not able to
intercept
> them correctly. To continue using the Application->Handle, you would have
> to set up a TApplication::OnMessage event handler instead.
>
>
> Gambit
>
>
Technical Details
Message-ID:
<3f38a37e@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f378281@newsgroups.borland.com> <3f37d3fc$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,2a65053854a29683 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-12 01:31:28 PST From: "DRE" <dre00x@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f378281@newsgroups.borland.com> <3f37d3fc$1@newsgroups.borland.com> Subject: Re: Working With Clipboard !! Date: Tue, 12 Aug 2003 11:28:09 +0300 Lines: 37 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 NNTP-Posting-Host: 62.135.27.96 Message-ID: <3f38a37e@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1060676478 62.135.27.96 (12 Aug 2003 01:21:18 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail