How can I input text into my WINAPI program???

Started by
1 comment, last by KevinLee 18 years, 4 months ago
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.
Advertisement
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.

Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>

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