You could try to use WM_CHAR message to implement Text Input.
If you want to high-quality text rendering, you could try to use DirectWrite and follow the Doc: Text Rendering with Direct2D and DirectWrite
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have forward plan after finished learn the basics of Direct2D.
I know that Direct2D is not a UI Control library. But, if there any built-in support for Text Input (like <input type="text"/> in HTML) from Direct2D, I don't really need to handle user input on my own.
However, if Direct2D does not serve that, how can I implement a Text Input in my Direct2D application?
Is there any user-input handling support in Win32 API?
Note that I don't want to handle physical keyboard input, if the user presses key S + A, the "input" should be sa. If the user has a different input methods, e.g Microsoft Japanese IME, for example, when the user presses key S + A, the input should be Japanese character さ (pronounced "sa") and not ASCII sa.
You could try to use WM_CHAR message to implement Text Input.
If you want to high-quality text rendering, you could try to use DirectWrite and follow the Doc: Text Rendering with Direct2D and DirectWrite
You can use standard Win32 Edit control (with some code to add to handle the caret if there are animations...)
Test with Chinese :