Hi,
I need to disable/enable the touch screen for my application. The API
TouchPanelDisable () disable works fine, but when I call BOOL
TouchPanelEnable(PFN_TOUCH_PANEL_CALLBACK) with NULL paramter, nothing
happens. I have to restart the device to enable the touch screen. Can anyone
please tell me how to enable the touch screen without restarting? Or am I
missing something here?

Re: touch panel disable and enable by Chris

Chris
Mon May 05 10:42:15 CDT 2008

Of course, it needs that callback. Telling it to call NULL when it gets
interrupts would lead to an expected behavior of nothing. These APIs are
really for use by the TP driver itself, not an application. You shouldn't
be calling from from anywhere else (like an app).


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com



"Vikky" <Vikky@discussions.microsoft.com> wrote in message
news:CAF15EF3-2924-4A5F-982F-3A4BCD74736D@microsoft.com...
> Hi,
> I need to disable/enable the touch screen for my application. The API
> TouchPanelDisable () disable works fine, but when I call BOOL
> TouchPanelEnable(PFN_TOUCH_PANEL_CALLBACK) with NULL paramter, nothing
> happens. I have to restart the device to enable the touch screen. Can
> anyone
> please tell me how to enable the touch screen without restarting? Or am I
> missing something here?