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

RL Chen 230 Reputation points
2024-04-03T05:26:56.4233333+00:00

After some testing, I found that the RTS touch library on win7sp1 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 API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,523 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,637 questions
{count} votes