News: SMF - Just Installed!

Author Topic: No WM_POINTER messages for WPF windows/apps??  (Read 142 times)

Offline Donnieclark

  • Full Member
  • ***
  • Posts: 142
No WM_POINTER messages for WPF windows/apps??
« on: November 15, 2017, 10:42:00 AM »

When using SPY++ to view messages sent to a Windows 8 desktop app created with WPF (.Net 4.x), it shows no WM_POINTER messages (at least no WM_POINTERDOWN, ..UP, ..UPDATE). For any other windows on the desktop (including the desktop itself), touch inputs are "correctly" signaled by WM_POINTER messages.
Can anybody confirm this behaviour or even better: explain it? Is this behaviour normal?
I'm thankfull for any hints!
Background: I'm working on a global touch input detection for Windows 8. For this i use a unmanaged C++ dll that sets a global hook via Set Windows HookEx This works fine except for WPF applications, as i am only able to detect touch downs and ups (via WM_POINTER ENTER and WM_POINTER LEAVE), but not move events, as WM_POINTER UPDATE messages are not sent to the WPF window. This is especially bad, because WPF is the framework we like and use most for desktop app development.


For More Details:

Startup Video