Menu

#460 winuser.h error

v1.0 (example)
closed-fixed
nobody
None
5
2015-03-05
2015-02-28
Jonathon
No

In winuser.h right below line 5347, there are three defines for touch input messages

#define WM_TOUCHMOVE 576
#define WM_TOUCHDOWN 577
#define WM_TOUCHUP 578

Those messages were for the Beta of windows 7, in the release of windows 7 there was only one message

#define WM_TOUCH 576

The touch input structure ( TOUCHINPUT ) is correct.

refer to Reed Townsend's answer here for a description, and the msdn here for verification.

Would someone please update winuser.h to reflect the correct SDK defines, I seriously don't think anyone wants a diff of my hacked header, but if you would prefer a diff, I can provide one.

Discussion

  • Ozkan Sezer

    Ozkan Sezer - 2015-03-05
    • status: open --> closed-fixed
     
  • Ozkan Sezer

    Ozkan Sezer - 2015-03-05

    Thanks for this.

    Removed WM_TOUCHMOVE, WM_TOUCHDOWN and WM_TOUCHUP that didn't belong:
    git master: commit 68e7de3fb13c0d19f9debea8d614d9fd5db09985
    git v4.x: commit d13734b7c852cbd53d6ad034077d86b3dd9144b5

    Removed WM_TOUCHMOVE, WM_TOUCHDOWN and WM_TOUCHUP that didn't belong
    and added WM_TOUCH defined as 576:
    git v3.x: commit 741ed26f40adc614824510134a4424a95dd70eed
    git v2.x: commit 395885a99318882ca36a1487bd0a0f48d0410d0c
    git v1.x: commit f0b44f601f01d678dbee730d21aa27bceee6586f

    Closing as fixed.

     

Log in to post a comment.