Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TouchPanelEnable(PFN_TOUCH_PANEL_CALLBACK pfnCallback);

32 views
Skip to first unread message

Edward E. Martins

unread,
Mar 29, 2005, 9:21:34 AM3/29/05
to

/*
Hi, I need re-enable the touch screen disabled by "TouchPanelDisable();",
but I dont know use this function, somebody help me to use this
please...!!!

Thanks...

P.S. I read the microsoft helper
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceddk40/html/_wceddk_touchpanelenable.asp),
but this dont help me...
P.P.S. I using C# for this..
*/

Paul G. Tobey [eMVP]

unread,
Mar 29, 2005, 12:05:43 PM3/29/05
to
That's going to be application-specific. What parameter would you pass, if
you were running in C? Have you tried NULL? What are you trying to
achieve? Just turn it back on after you turned it off?

Paul T.

"Edward E. Martins" <martins...@hotmail.com> wrote in message
news:%23ZbIdqG...@TK2MSFTNGP15.phx.gbl...

Edward E. Martins

unread,
Mar 29, 2005, 1:02:19 PM3/29/05
to

Paut, thanks to reply this.
I tried null "TouchPanelEnable();" and the return was "TRUE", but when I
touch the screen, my application say goodbye and the touchscreen stops to
function pparently, and only shutdown the system restores the touch
screen...

Paul G. Tobey [eMVP]

unread,
Mar 29, 2005, 1:28:36 PM3/29/05
to
It's not at all clear what the semantics of the function pointer passed to
the call are or whether disabling/reenabling a panel makes any sense. I'd
say that, unless you can find a sample of its use, you're out of luck.

Paul T.

"Edward E. Martins" <martins...@hotmail.com> wrote in message

news:OTP1zlIN...@TK2MSFTNGP12.phx.gbl...

Edward E. Martins Jr. via DotNetMonster.com

unread,
Mar 29, 2005, 2:26:27 PM3/29/05
to
I agree. Previously I used

RAWINPUTDEVICE myRawDevice = new RAWINPUTDEVICE();
myRawDevice.usUsagePage = 0x01;
myRawDevice.usUsage = 0x02;
myRawDevice.dwFlags = RIDEV_NOLEGACY;//adds HID mouse and also ignores
legacy mouse messages

RegisterRawInputDevices(&myRawDevice, 1, (uint)sizeof(RAWINPUTDEVICE));

This function in my PC(WXP) run ok, but in the PPC(WCE) not, but this
function is in User32.dll.
You know another way to enable/disable the touch screen using compact
framework...???

--
Message posted via http://www.dotnetmonster.com

Paul G. Tobey [eMVP]

unread,
Mar 29, 2005, 2:26:01 PM3/29/05
to
Not dynamically, no. What's the scenario where you need to do that?

Paul T.

"Edward E. Martins Jr. via DotNetMonster.com" <fo...@DotNetMonster.com>
wrote in message news:731aef804bf943b3...@DotNetMonster.com...

Edward E. Martins Jr. via DotNetMonster.com

unread,
Mar 29, 2005, 2:57:31 PM3/29/05
to
The senario is this:
->My application start automatically on boot
->My application use total area of the PPC screen disabling the touch
screen, LWin and capture F1 to F2.
->The single user can only use the keybord in my application.
->The master user can leave my application and use the OS to give
maintenance, etc.
->After the master user give maintenance, he restarts the system (WarmBoot!)
and the cycle can happened again.

Paul G. Tobey [eMVP]

unread,
Mar 29, 2005, 3:19:04 PM3/29/05
to
Then you don't need to disable the touch screen, as I see it, just ignore
touch inputs in the window procedure.

Paul T.

"Edward E. Martins Jr. via DotNetMonster.com" <fo...@DotNetMonster.com>

wrote in message news:73798fd413914d21...@DotNetMonster.com...

Edward E. Martins Jr. via DotNetMonster.com

unread,
Mar 29, 2005, 3:29:06 PM3/29/05
to
Paul, how I can make this?

Paul G. Tobey [eMVP]

unread,
Mar 29, 2005, 3:32:10 PM3/29/05
to
You might use OpenNETCF's ApplicationEx with a message filter and just
ignore the mouse messages.

Paul T.


"Edward E. Martins Jr. via DotNetMonster.com" <fo...@DotNetMonster.com>

wrote in message news:90605c724f624061...@DotNetMonster.com...

Chris Tacke, eMVP

unread,
Mar 29, 2005, 3:58:42 PM3/29/05
to
In managed code use an IMEssageFilter implementation and simply throw away
all mouse events.

--
Chris Tacke
Co-founder
OpenNETCF.org
Has OpenNETCF helped you? Consider donating to support us!
http://www.opennetcf.org/donate


"Edward E. Martins Jr. via DotNetMonster.com" <fo...@DotNetMonster.com>

wrote in message news:90605c724f624061...@DotNetMonster.com...

Edward E. Martins Jr. via DotNetMonster.com

unread,
Mar 29, 2005, 7:19:02 PM3/29/05
to
OKok Paul, thanks for all.
Tomorrow I go to try this, now is to late. I go home...

Edward E. Martins Jr. via DotNetMonster.com

unread,
Mar 30, 2005, 9:28:12 AM3/30/05
to
Paul, in the form, this solution function perfectly, but in the MessageBox,
I can?t capture the mouse event... You have some idea to solve this...???

Sergey Bogdanov

unread,
Mar 30, 2005, 9:53:03 AM3/30/05
to
Except MessageBox it also won't work for forms that are opened with
ShowDialog. The MessageBox problem could be resolved by implementing
your own dialog that behaves like MessageBox (centered, topmost).

Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com

Paul G. Tobey [eMVP]

unread,
Mar 30, 2005, 10:48:28 AM3/30/05
to
Yes, you're going to have problems with anything that starts another message
loop, as dialogs seem to do. You might consider implementing the modality
of your dialogs yourself with regular forms. You'll have to handle the case
where the user is trying to tap on something that shouldn't be in front,
etc. Or, you might try to subvert the ShowDialog() startup of another
message loop and trap the messages, as you're doing with the main form(s),
via a message filter.

Paul T.

"Sergey Bogdanov" <sergey....@gmail.com> wrote in message
news:uSyutgTN...@tk2msftngp13.phx.gbl...

0 new messages