🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Example of a SetWindowsHookEx to capture mouse events

#9825
From: Art Alvarado
Date: Wed, 09 Jun 2004 23:47
20 lines
1683 bytes
"I wrote in message news:40c77fcd@newsgroups.borland.com...
> I'm a bit confused on setting up a hook event to capure mouse events
outside
> my application.
>
> Are there any examples of how to do this?

Nevermind I finally found an excelent sample done by Remy at:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=911b69%24krs13%40bornews.inprise.com&rnum=22

But I do have a question though.  If for example, I did not want to a
message to be passed to the other applications: How can I keep it from it
being processed.  I tried not calling the CallNextHookEx()  but the
applications still get the message.

> Specially something that actually allow me to communicate back with my
app.

Here I'm still lost, something about sharing memory?  Hints please!
Technical Details
Message-ID: <40c7a1ab@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40c77fcd@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e83fbaa221151f7f
X-Google-Attributes: gid10cc67,public
Reply-To: "Art Alvarado" <gug@gug.net>
From: "Art Alvarado" <gug@gug.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40c77fcd@newsgroups.borland.com>
Subject: Re: Example of a SetWindowsHookEx  to capture mouse events
Date: Wed, 9 Jun 2004 17:47:56 -0600
Lines: 25
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: 200.30.148.162
Message-ID: <40c7a1ab@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1086824875 200.30.148.162 (9 Jun 2004 16:47:55 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail