Article View: borland.public.cppbuilder.nativeapi
Article #5477Re: Application->ProcessMessages()
From: Remy Lebeau (TeamB)
Date: Thu, 18 Aug 2005 20:58
Date: Thu, 18 Aug 2005 20:58
19 lines
1510 bytes
1510 bytes
"Marc" <Bukwheat@axess.com> wrote in message news:4304e5d0$1@newsgroups.borland.com... > What does application.ProcessMessages do Pumps the main message queue for any pending messages that are awaiting processing. > I would liek to do the same using standard API. A message queue consists of calling Get/PeekMessage(), TranslateMessage(), and DispatchMessage() in a loop for the lifetime of the thread. When you pump the queue manually from elsewhere, you should not loop indefinately, but instead break the loop as soon as the queue is cleared. Use PeekMessage() to know if there are any messages in the queue. Gambit
Technical Details
Message-ID:
<4304f671$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4304e5d0$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,bd3238f94cf51905 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: <4304e5d0$1@newsgroups.borland.com> Subject: Re: Application->ProcessMessages() Date: Thu, 18 Aug 2005 13:58:37 -0700 Lines: 21 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: <4304f671$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1124398705 68.69.17.41 (18 Aug 2005 13:58:25 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail