Article View: borland.public.cppbuilder.nativeapi
Article #14466Re: Working With Clipboard !!
From: Remy Lebeau (TeamB)
Date: Mon, 11 Aug 2003 17:42
Date: Mon, 11 Aug 2003 17:42
23 lines
1738 bytes
1738 bytes
"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:
<3f37d3fc$1@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!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f378281@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-11 10:40:32 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f378281@newsgroups.borland.com> Subject: Re: Working With Clipboard !! Date: Mon, 11 Aug 2003 10:42:22 -0700 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3f37d3fc$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1060623356 207.175.226.26 (11 Aug 2003 10:35:56 -0700) 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!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail