Article View: borland.public.cppbuilder.nativeapi
Article #8579Re: How to Trigger KeyDown from a Thread?
From: PC Hua
Date: Wed, 06 Oct 2004 05:43
Date: Wed, 06 Oct 2004 05:43
39 lines
2036 bytes
2036 bytes
Thank you for your help, not only here but also: http://groups.google.com.au/groups?hl=en&lr=&frame=right&th=8d253e998023d48c&seekm=3e93346e%40newsgroups.borland.com#link1 and I also find Nick's codes very useful because I need to check the control key a well. thanks Phuoc Can HUA On Tue, 5 Oct 2004 18:54:14 -0700, Remy Lebeau (TeamB) <no.spam@no.spam.com> wrote: > > "PC Hua" <home-AT-huaonline.DOT.com> wrote in message > news:opsffctzv8pmxkmr@newsgroups.borland.com... > >> Sorry, I couldn't find PostThreadMessage in help. > > Did you look in the Win32 API help file? This is an API newsgroup, > afterall. > >> Did you mean sending to a thread? >> But I want the KeyDown triggered from a thread. > > The GUI is run in the main thread, you can post messages to the main > thread. > Otherwise, you can use PostMessage() or SendMessage() instead to send the > message to the application's MainForm. > > > Gambit > > -- _/\__/\__/\__/\__/\__/\_ www.folksfun.com
Technical Details
Message-ID:
<opsffou4i2pmxkmr@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<opsfe7iebspmxkmr@newsgroups.borland.com> <41633809@newsgroups.borland.com> <opsffctzv8pmxkmr@newsgroups.borland.com> <41635044$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d92f931cda9560d9 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: How to Trigger KeyDown from a Thread? References: <opsfe7iebspmxkmr@newsgroups.borland.com> <41633809@newsgroups.borland.com> <opsffctzv8pmxkmr@newsgroups.borland.com> <41635044$1@newsgroups.borland.com> Message-ID: <opsffou4i2pmxkmr@newsgroups.borland.com> From: PC Hua <home-AT-huaonline.DOT.com> Content-Type: text/plain; format=flowed; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Wed, 06 Oct 2004 15:43:42 +1000 User-Agent: Opera7.21/Win32 M2 build 3218 NNTP-Posting-Host: 203.194.21.162 X-Trace: newsgroups.borland.com 1097041422 203.194.21.162 (5 Oct 2004 22:43:42 -0700) Lines: 39 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail