Article View: borland.public.cppbuilder.nativeapi
Article #11993Re: Paste
From: Remy Lebeau (TeamB)
Date: Sat, 03 Jan 2004 02:15
Date: Sat, 03 Jan 2004 02:15
16 lines
1598 bytes
1598 bytes
"Jelsma" <jelsma@wapa.gov> wrote in message news:3ff5f6bc$2@newsgroups.borland.com... > My plan is to enumerate the top level windows and send > a WM_PASTE message to the edit control. Will this work > or am I missing something? Yes, that will work. If you use CreateProcess() to load notepad, then you will have the process ID for the new window. You can use that with your enumeration, via the GetWindowThreadProcessId(), to ensure that you really work with the newly spawned instance and not some other instance by accident, in case you have notepad running multiple times. Gambit
Technical Details
Message-ID:
<3ff625ac@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer00.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3ff5f6bc$2@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,fdb8783d5e192556 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-01-02 18:39:42 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ff5f6bc$2@newsgroups.borland.com> Subject: Re: Paste Date: Fri, 2 Jan 2004 18:15:56 -0800 Lines: 18 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: 67.22.139.199 Message-ID: <3ff625ac@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1073096108 67.22.139.199 (2 Jan 2004 18:15:08 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer00.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail