How do I limit the length of text that can be entered in the Text Services Framework?

tomoki kawasaki 1 Reputation point
2020-09-08T10:03:30.007+00:00

I am trying to use the Text Services Framework to implement the function to enter player names for a game.
I want to set the maximum length of text that can be entered to the length of the player's name.
I was able to ignore alphanumeric characters and symbols (WM_CHAR) when the limit was exceeded, but it doesn't work for other characters (Chinese, Japanese, etc.).
I'd like to get some advice.

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,498 questions
{count} votes