1. Hide mouse cursor in Win32
Hi,
[ under the Win32 API ]
Anyone know how I hide the mouse cursor before or after creating a window?
Or just create a window without showing the cursor?
Thanks,
-molasses
2. Re: Hide mouse cursor in Win32
- Posted by Bernie Ryan <bwryan at PCOM.NET>
Jul 06, 1999
-
Last edited Jul 07, 1999
ShowCursor(fShow) function -- fShow is BOOLEAN cursor show flag
function keeps track of number of calls to show and hide by using a display
counter. calling ShowCursor( with non-zero parm ) increments the show level
display counter. calling ShowCursor( with zero parm ) decrements the show
level count. Windows displays the cursor only when this internal counter is
greater than or equal to zero. This counter is initially zero when a mouse
installed if you don't have your mouse installed windows sets this counter
to -1 and no cursor is displayed. The cursor is shared between the
different windows on yor screen so you have be sure that that the window
that hides the mouse cursor shows it before it moves off that window.
Bernie
3. Re: Hide mouse cursor in Win32
Thankyou, it worked.
I set ShowCursor(0) to hide it though, not ShowCursor(-1).
-molasses
----- Original Message -----
From: Bernie Ryan <bwryan at PCOM.NET>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Wednesday, 7 July 1999 10:57 am
Subject: Re: Hide mouse cursor in Win32
> ShowCursor(fShow) function -- fShow is BOOLEAN cursor show flag
> function keeps track of number of calls to show and hide by using a
display
> counter. calling ShowCursor( with non-zero parm ) increments the show
level
> display counter. calling ShowCursor( with zero parm ) decrements the show
> level count. Windows displays the cursor only when this internal counter
is
> greater than or equal to zero. This counter is initially zero when a mouse
> installed if you don't have your mouse installed windows sets this counter
> to -1 and no cursor is displayed. The cursor is shared between the
> different windows on yor screen so you have be sure that that the window
> that hides the mouse cursor shows it before it moves off that window.
> Bernie
>