How can I input text into my WINAPI program???
So I'v cooked up a nice windows program using MSVC++ 6.0. It is a
project using the windows API(not MFC), it uses openGL to showcase Linear Transformations
... blah blah blah. At this point, I need the user to be able to enter numerical
data( and store it in a array ). Something that would be trivial with a console app, but seems impossible with a GUI app. I'v looked EVERYWHERE!!! for info on how to accomplish this simple task-- and found NOTHING !!!!!
Please can you help me.
Implement the WM_CHAR message in your window proc. This has the benefits of all key presses translated to your keyboard layout and the usual repeat and delay values.
Why don't you create an Edit control in order to receive user input. If you just want to get the key stroke event, you can handle WM_KEYDOWN, WM_CHAR...etc
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement