I am migrating an MFC application to Win8 Consumer Preview where I e.g. want to use the new pressure property that should be avilable in some POINTER_TOUCH_INFO struct.
Previous code in Win7 was to first call RegisterTouchWindow(TRUE, 0)
and then implement OnTouchInput() something like this:
BOOL CStaticTouch::OnTouchInput(CPoint pt, int nInputNumber, int nInputsCount, PTOUCHINPUT pInput)
if ((pInput->dwFlags & TOUCHEVENTF_DOWN) == TOUCHEVENTF_DOWN) // Touch Down event
Does anyone know how to do this in Win8 and to get a pointer to a POINTER_TOUCH_INFO struct from where I can get e.g. pressure info.
You get the POINTER_TOUCH_INFO
by passing the pointer ID you get in your
WM_POINTER* messages to
I'm not sure if the
TOUCHINPUT's dwID that you are getting will be the same pointer ID or not. You probably should update from handling the WM_TOUCH messages to the WM_POINTER* messages if you need the new functionality anyway.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?