🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #3310

Re: How do I disable Mouse Input?

#3310
From: Paul Bonneau
Date: Wed, 19 Jun 1991 19:32
13 lines
1031 bytes
In article <1405@ssp18.idca.tds.philips.nl> hansh@idca.tds.PHILIPS.nl (Hans Helmonds) writes:
>Who knows a way to temporarily disable every mouse input to the system
>and leave keyboard input and buffering enabled?
>EnableHardwareInput() works only if you want to disable both mouse and
>keyboard input. 
>
You could install a WindowsHook of type WH_GETMESSAGE (since
all user input is posted and must be retreived with
GetMessage() or PeekMessage()).  If you want mouse input
disabled, turn the mesage into something innocuous like
WM_NULL.  I have never tried this but it *should* work.

cheers - Paul Bonneau.
Technical Details
Message-ID: <1991Jun19.193231.2753@hyper.hyper.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!hyper.hyper.com!bonneau
References: <1405@ssp18.idca.tds.philips.nl>

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.ms.programmer
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!hyper.hyper.com!bonneau
From: bonneau@hyper.hyper.com (Paul Bonneau)
Subject: Re: How do I disable Mouse Input?
Message-ID: <1991Jun19.193231.2753@hyper.hyper.com>
Reply-To: bonneau@hyper.UUCP (Paul Bonneau,,)
Organization: HyperCube Inc.
References: <1405@ssp18.idca.tds.philips.nl>
Date: Wed, 19 Jun 1991 19:32:31 GMT