Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
End Users
Pocket PCActiveSyncMultimediaEBooksWirelessSmartPhones
Developers
Windows MobileSmartPhonesWinCE ProgrammingVB for WinCEVC++ for WinCEPlatform BuilderTest Tools
PocketPC DirectoryFree SoftwareWeb Resources
Related Topics
PalmMobile PhonesMore Topics ...

Pocket PC Forum / Developers / Platform Builder / July 2008

Tip: Looking for answers? Try searching our database.

Disabling system cursor in Windows CE 6.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DaliborS - 25 Jul 2008 00:15 GMT
I'm trying to disable the system cursor as my system uses a touch screen (ELO
Touch). I have removed all the mouse components (in Shell and User Interface,
and USB HID) except the one in Device Drivers-Keyboard/Mouse English which
has some critical dependencies. I know it was done in WinCE 4.2, but cannot
achieve it in 6.0.

Please advise,
Dalibor
Paul G. Tobey [eMVP] - 25 Jul 2008 00:24 GMT
The display driver is what is responsible for the cursor.  Maybe that's
where the problem is...

Paul T.

> I'm trying to disable the system cursor as my system uses a touch screen
> (ELO
[quoted text clipped - 7 lines]
> Please advise,
> Dalibor
Bill T - 28 Jul 2008 14:55 GMT
As a last resort, you might be able to use the ShowCursor( ) api in an
application to control the cursor.  In CE 5.0, I use the following:

// enable cursor - true causes increment, ShowCursor must be >= 0 to be On
while( ShowCursor(true) < 0 );

and

// disable cursor - false causes decrement, ShowCursor must be < 0 to be Off
while( ShowCursor(false) >= 0 );

> The display driver is what is responsible for the cursor.  Maybe that's
> where the problem is...
[quoted text clipped - 12 lines]
> > Please advise,
> > Dalibor
DaliborS - 31 Jul 2008 23:24 GMT
Sorry for the delayed response. I was trying to get attention from the chip
manufacturer who owns the driver source and was pointed by them towards the
board manufacturer, with no response at all. So we have tried to do the fix
on the application level as Bill has suggested, but it was not working
reliably, the cursor would turn back on. Only after implementation of
following combination it works:

WNDCLASS wc;
wc.hCursor          = LoadCursor(NULL, IDC_ARROW);
SetCursor(NULL);

We are working with ICOP VG86 platform.

> As a last resort, you might be able to use the ShowCursor( ) api in an
> application to control the cursor.  In CE 5.0, I use the following:
[quoted text clipped - 23 lines]
> > > Please advise,
> > > Dalibor
Paul G. Tobey [eMVP] - 31 Jul 2008 23:44 GMT
Changing/hiding the cursor off is an application-specific operation.  You
should not have control over the cursor when it's over another application,
so you don't.  That is, what you're trying to do is the equivalent of
Internet Explorer taking over the cursor when Word is in front. That's not
what you want and the system prevents you from doing that, or at least makes
every effort to prevent you from doing it.

Paul T.

> Sorry for the delayed response. I was trying to get attention from the
> chip
[quoted text clipped - 43 lines]
>> > > Please advise,
>> > > Dalibor
DaliborS - 31 Jul 2008 23:58 GMT
Paul,

We run only one application after the WinCE boot, with no possibility to
switch out of it, so it works in this case. Of course I would prefere to fix
the driver and disable the cursor on the system level.

> Changing/hiding the cursor off is an application-specific operation.  You
> should not have control over the cursor when it's over another application,
[quoted text clipped - 52 lines]
> >> > > Please advise,
> >> > > Dalibor
Paul G. Tobey [eMVP] - 01 Aug 2008 00:01 GMT
Yes, you have a safe case there.  You tried ShowCursor( FALSE )?

Paul T.

> Paul,
>
[quoted text clipped - 67 lines]
>> >> > > Please advise,
>> >> > > Dalibor
DaliborS - 01 Aug 2008 00:24 GMT
Yes, we did, but the cursor would come back again. The LoadCursor holds the
setting for the given application reliably even if you switch to another
application and come back.

Dalibor

> Yes, you have a safe case there.  You tried ShowCursor( FALSE )?
>
[quoted text clipped - 71 lines]
> >> >> > > Please advise,
> >> >> > > Dalibor
Paul G. Tobey [eMVP] - 01 Aug 2008 00:43 GMT
But, if you don't ever switch away from your application... ;-)

Paul T.

> Yes, we did, but the cursor would come back again. The LoadCursor holds
> the
[quoted text clipped - 92 lines]
>> >> >> > > Please advise,
>> >> >> > > Dalibor
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.