Article View: borland.public.cppbuilder.nativeapi
Article #16479Re: event loop
From: WETA
Date: Wed, 14 May 2003 13:57
Date: Wed, 14 May 2003 13:57
42 lines
2186 bytes
2186 bytes
Thank you!
but I guess I still don't catch the idea.
I must try a little more to make it work :)
U�ytkownik "Remy Lebeau (TeamB)" <gambit47@yahoo.com> napisa� w wiadomo�ci
news:3ebfc985$3@newsgroups.borland.com...
>
> "JOLA" <weta@gazeta.pl> wrote in message
> news:3ebf6e6e@newsgroups.borland.com...
>
> > Question: would it be enough to place TApplicationEvents
> > object in my app and how to use it?
>
> Just assign an event handler to its OnMessage event, and set the Handled
> parameter appropriately.
>
> However, do keep in mind that OnMessage will only be triggered for
messages
> placed in the message queue, such as via PostMessage(). Not for messages
> sent to a particular window directly via SendMessage(). Do you need to
> intercept though as well? If so, then you'll mst likely need to use a
> message hook via SetWindowsHookEx() instead.
>
> > Or maybe it's better to put
> > while (GetMessage())
> > {
> > send_message_to_source()
> > and dispatch_it() //if it was returned by source
> > }
> > loop somewhere in the app
>
> That is what the TApplication::OnMessage event already allows you to do.
>
>
> Gambit
>
>
Technical Details
Message-ID:
<3ec24b07@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!pln-w!extra.newsguy.com!lotsanews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ebf6e6e@newsgroups.borland.com> <3ebfc985$3@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10cc67,f0a2759c1f722c56 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-14 07:01:11 PST Reply-To: "WETA" <weta@gazeta.pl> From: "WETA" <weta@gazeta.pl> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ebf6e6e@newsgroups.borland.com> <3ebfc985$3@newsgroups.borland.com> Subject: Re: event loop Date: Wed, 14 May 2003 15:57:04 +0200 Lines: 44 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 62.233.227.180 Message-ID: <3ec24b07@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1052920583 62.233.227.180 (14 May 2003 06:56:23 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!pln-w!extra.newsguy.com!lotsanews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail