Hiding mouse in shell

M

Mike Kaufman

I'm building an image for a device that will not have a
keyboard and mouse attached. Even with no mouse plugged in
when I boot up XPe it still shows the mouse cursor. What's
the easiest way to prevent the mouse cursor from
displaying in the image? Is it necessary to develop a
custom shell or is there an easier method? I don't see any
option and I've tried removing the PS/2 Mouse component
from my hardware list but it still shows the cursor. If I
do need to develop a custom shell, can anyone forward me a
link to a good starting place on how to go about doing
that?

Thanks.

Mike
 
J

Jack Furr

Assuming that you are going to provide your own software for the end user,
your software can display a custom mouse cursor image that is invisible
(i.e. transparent).

Windows API
LoadCursor(IDC_NULL);

Where IDC_NULL is the ID of the 32 x 32 .CUR image.

Jack Furr
Sr. Software Engineer
Netpulse, LLC
http://www.netpulse.com
 
M

Mike Kaufman

Thanks for the reply, but I don't think that's the
solution I'm looking for.

Ideally I'd like the mouse cursor not shown unless a USB
mouse is plugged in. This is basically for a kiosk type
unit that's just going to be diplaying video. So I don't
want the cursor at all except when a USB mouse is plugged
in just to make configuration changes if necessary.

Any other ideas?

Thanks.

Mike
 
D

Doug Hoeffel

Mike:

How about this:

// move cursor off the screen
SetCursorPos(2000, 2000);

HTH... Doug
 
S

Steve Schilz

I have also used successfully used that type of solution, I found the screen
size and set the cursor to the lower right corner (800x600).
Of course, this does require writing a standard windows app and running it
(i.e. via Windows\CurrentVersion\Run key), or finding some place where you
are already writing/running your code to insert the SetCursorPos call...

That way if there is a mouse and somebody wants to use it, they will
invariably wiggle it and find the cursor.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top