🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Make the active program cut/copy/paste

#16253
From: Remy Lebeau (TeamB)
Date: Fri, 23 May 2003 18:19
19 lines
2014 bytes
"Chris" <Chris8852@adelphia.net> wrote in message
news:3ece6170@newsgroups.borland.com...

> I believe a few weeks back I tried sending WM_COPY
> messages etc. to programs like paint shop pro etc. and it
> didn't work.

It depends on which actual window you sent the messages to.  That's why I
also mentioned the use of AttachThreadInput() and GetActiveWindow(), to
attempt sending the message to the very specific child window that actually
has the input focus.  If an application supports Ctrl-C and such, then
chances are it also supports WM_COPY as well.  It's not just for edit
windows, despite MS's documentation.  However, it is also not a guarantee,
either.  Individual applications are free to handle copy/paste however they
want.  There is no solution that covers 100% of all scenerios.


Gambit
Technical Details
Message-ID: <3ece65b6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3ecc389a$1@newsgroups.borland.com> <24rpcvkltv996oo0fa80hg4s0p6rlsf009@4ax.com> <3ecd04e5$1@newsgroups.borland.com> <3ecd05c1$1@newsgroups.borland.com> <3ece6170@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,41b72cf95ca3a5fa
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-23 11:53:45 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ecc389a$1@newsgroups.borland.com> <24rpcvkltv996oo0fa80hg4s0p6rlsf009@4ax.com> <3ecd04e5$1@newsgroups.borland.com> <3ecd05c1$1@newsgroups.borland.com> <3ece6170@newsgroups.borland.com>
Subject: Re: Make the active program cut/copy/paste
Date: Fri, 23 May 2003 11:19:56 -0700
Lines: 21
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.1165
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3ece65b6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1053713846 207.175.226.26 (23 May 2003 11:17:26 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail