C++ RealTimeStylus is dead and doesn't handle any touch messages.

RL Chen 265 信誉分
2024-04-03T05:23:32.57+00:00

After some testing, I found that the RTS touch library on win7 sp1 systems has a probability of triggering an error: RealTimeStylus does not trigger, i.e. it does not trigger the touch callback class even if there is a touch point that has been pressed on the corresponding window. This problem disappeared after restarting the program, but it was caused by the fact that after starting the program, another program opened a full screen window and grabbed the focus, and then my program RTS died as if it didn't process any touch messages (my bound window was still on the top level). At the same time the RTS bound window has WS_EX_LAYERED and WS_EX_NOACTIVATE and HWND_TOPMOST and does not remove these flags. I am using C++.

Windows 开发 | Windows API - Win32
开发人员技术 | C++
开发人员技术 | C++

一种通用的高级编程语言,作为 C 编程语言的扩展而创建,除了用于低级别内存操作的功能外,还具有面向对象、泛型和功能性等特点。


你的答案

提问者可以将答案标记为“已接受”,审查方可以将答案标记为“已推荐”,这有助于用户了解答案是否解决了提问者的问题。