Article View: borland.public.cppbuilder.nativeapi
Article #9033Re: Hide mouse cursor
From: Steve
Date: Thu, 05 Aug 2004 12:14
Date: Thu, 05 Aug 2004 12:14
27 lines
1982 bytes
1982 bytes
Hi Paolo Thanks again for your advice. Unfortunately in this instance, I am unable to do this, as I'm trying to develop a utility that allows 2 separate pc's to mimic a single multi-monitor pc. (ie - allowing 2 pc's to be controlled with a single mouse and keyboard) I plan to achieve this by installing a WH_MOUSE_LL hook, so that when the cursor moves to the right-hand edge of the first screen, I wrap the mouse using SetCursorPos back to the left- hand edge of the screen, hide the cursor, and send all further mouse data via a network message to the 2nd pc, where I inject the mouse data there - thus simulating a mouse on that pc. Therefore, my hook needs to be a low-level mouse hook, so that I can intercept all mouse data, not only mouse data when the mouse is over my application. Furthermore, the application will be installed as a service, and will not have a visible window over which the mouse can move. So it is essential that I be able to hide the cursor from all windows. Your thoughts are greatly apprecitated.
Technical Details
Message-ID:
<41122492$1@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-mailReferences:
<410e62e3$1@newsgroups.borland.com> <410f387f@newsgroups.borland.com> <410f5143$1@newsgroups.borland.com> <410f7c7f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4e0d7f4323d9870c 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: Re: Hide mouse cursor Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 217.35.87.97 X-Forwarded-For: 192.1.0.48 References: <410e62e3$1@newsgroups.borland.com> <410f387f@newsgroups.borland.com> <410f5143$1@newsgroups.borland.com> <410f7c7f$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <41122492$1@newsgroups.borland.com> Date: 5 Aug 2004 05:14:10 -0700 X-Trace: newsgroups.borland.com 1091708050 207.105.83.66 (5 Aug 2004 05:14:10 -0700) Lines: 28 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