Article View: borland.public.cppbuilder.nativeapi
Article #9034Can I alter mouse coords within a WH_MOUSE_LL hook proc?
From: Steve
Date: Thu, 05 Aug 2004 12:21
Date: Thu, 05 Aug 2004 12:21
18 lines
1464 bytes
1464 bytes
Hi Is it possible to alter mouse coordinates from within a WH_MOUSE_LL hook proc? I've tried in vain to achieve this by calling SetCursorPos inside my hook proc - but while the cursor does move to the new position, thereafter my mouse gets "pulled back" to those new coordinates every time I move the mouse. This may be in part to the fact that once I've moved the mouse to the new coordinates, I am then returning -1 from my hook proc, as I don't want windows to continue passing my mouse data down the hook chain, and on to any applications. How can I prevent the mouse data from going any further than my hook proc?
Technical Details
Message-ID:
<41122633$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.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-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,3b97067b4098d6a5,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Steve" <steve@hgl-dynamics.com> Sender: "Steve" <steve@hgl-dynamics.com> Reply-To: "Steve" <steve@hgl-dynamics.com> Subject: Can I alter mouse coords within a WH_MOUSE_LL hook proc? Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 217.35.87.97 X-Forwarded-For: 192.1.0.48 NNTP-Posting-Host: 207.105.83.66 Message-ID: <41122633$1@newsgroups.borland.com> Date: 5 Aug 2004 05:21:07 -0700 X-Trace: newsgroups.borland.com 1091708467 207.105.83.66 (5 Aug 2004 05:21:07 -0700) Lines: 18 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.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