Article View: borland.public.cppbuilder.nativeapi
Article #12114Re: clearing keyboard events
From: Michael Powell
Date: Sun, 28 Dec 2003 21:32
Date: Sun, 28 Dec 2003 21:32
28 lines
1681 bytes
1681 bytes
I determined Application->ProcessMessages() appears to have the intended effect. In other words, that the queued escape key having been pressed goes away so that MessageBox() may receive the next one (not the queued one). That is how it works in VCL. Is there a Windows API call that yields the same result? Regards, Michael "Michael Powell" <powellmw@comcast.net> wrote in message news:3fef2af9@newsgroups.borland.com... > Hello, > > I would like to clear a keyboard event. > > I am scanning for "escape" using GetAsyncKeyState(). At which point I > present user with prompt (yes, no, cancel). First pass by this prompt and no > prompt. Or escape was not cleared since having gotten its state. > > Any API to do this in Windows? > > Regards, > Michael > >
Technical Details
Message-ID:
<3fef4bc2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fef2af9@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,3e93738ec6037e67 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-28 13:39:26 PST From: "Michael Powell" <powellmw@comcast.net> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fef2af9@newsgroups.borland.com> Subject: Re: clearing keyboard events Date: Sun, 28 Dec 2003 14:32:44 -0700 Lines: 30 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: 68.35.190.58 Message-ID: <3fef4bc2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1072647106 68.35.190.58 (28 Dec 2003 13:31:46 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail