Newsgroups: comp.windows.ms.programmer
Path: 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

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.
