Migrating to Win8 touch in MFC: virtual BOOL OnTouchInput() --> ???

Unanswered Migrating to Win8 touch in MFC: virtual BOOL OnTouchInput() --> ???

  • Wednesday, March 28, 2012 3:07 PM
     
     

    Hi,

    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.

    Best regards

    /Andreas

All Replies