TouchPanel

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, i need to disable touch screen but i don't know what DLL invoke for
DdsiTouchPanelAttach() function.

Can you help me?

Thanks in advance.
 
You're barking up the wrong tree. That's part of the touchpanel driver,
which is directly linked into gwes and you can't get at it if you're not the
OEM. You also can't just "shut off" the touchpanel like you can with stream
interface drivers. You should just trap all mouse events in your app and
toss them out.
 
whit this piece of code, i can disable and it work very fine, but when
i call TouchPanelEnable(NULL) don't work.

typedef VOID (*TOUCHPANELDISABLE)();

void Trap()
{
HINSTANCE hTouch=LoadLibrary(_T("touch.dll"));
if (!hTouch)
return FALSE;

TOUCHPANELDISABLE pTouchPanelDisable=(TOUCHPANELDISABLE
GetProcAddress(hTouch, _T("TouchPanelDisable"));

pTouchPanelDisable();

reeLibrary(hTouch);

}
 
You can't reenable it because you don't have a pointer to the touch panel
function. That's in the touch panel driver, where you can't get at it. You
can reboot to reenable... This was covered in another thread a day or two
ago, either here or in one of the microsoft.public.windowsce.* groups. You
can use GoogleGroups, groups.google.com, to search the archives.

Paul T.
 
I think it's really a bad plan to disable the touchpanel for the entire
device anyway. If you don't want touch events in your app that's fine, but
stopping them for the whole device sounds like a recipe for angry users.

-Chris


"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:[email protected]...
 
I'm with you there...

Paul T.

I think it's really a bad plan to disable the touchpanel for the entire
device anyway. If you don't want touch events in your app that's fine, but
stopping them for the whole device sounds like a recipe for angry users.

-Chris


"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:[email protected]...
You can't reenable it because you don't have a pointer to the touch panel
function. That's in the touch panel driver, where you can't get at it.
You can reboot to reenable... This was covered in another thread a day
or two ago, either here or in one of the microsoft.public.windowsce.*
groups. You can use GoogleGroups, groups.google.com, to search the
archives.

Paul T.
 
TouchPanelDisable will work, but the enable function needs to be passed a
function pointer which handles the touch panel events, so you cant call this
from your code - TouchPanelDisable is therefore a one-way operation and
you'd need to do a soft-reset to restore the functionality. There aren't
many situations where you would actually need to call TouchPanelDisable.

Peter
 
Back
Top