🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to Trigger KeyDown from a Thread?

#8578
From: Remy Lebeau (TeamB)
Date: Wed, 06 Oct 2004 01:54
18 lines
1491 bytes
"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
Technical Details
Message-ID: <41635044$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <opsfe7iebspmxkmr@newsgroups.borland.com> <41633809@newsgroups.borland.com> <opsffctzv8pmxkmr@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
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <opsfe7iebspmxkmr@newsgroups.borland.com> <41633809@newsgroups.borland.com> <opsffctzv8pmxkmr@newsgroups.borland.com>
Subject: Re: How to Trigger KeyDown from a Thread?
Date: Tue, 5 Oct 2004 18:54:14 -0700
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <41635044$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1097027652 68.69.17.41 (5 Oct 2004 18:54:12 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail