From: Nello Sestini [mailto:[EMAIL PROTECTED]]
>> repeat until PeekMessage(MsgStruct, Form1.Handle, WM_KEYFIRST, 
>> WM_KEYLAST, PM_REMOVE) = 0;
>>
>> (warning - untried)
>
> i think it will stop when a 
> non - kbd message shows up even if there's another keyboard 
> event buffered after it.

It shouldn't.  PeekMessage searches through the whole message queue for
messages to remove.

Cheers,
Carl
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to