Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

dadio

Get text

This topic is 6114 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi All, Does anyone have an example of how to get user input text and write it or save it? in WM_KEYDOWN how can I get the actual char that is pressed? thx

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
The VK code for alpha keys is the same as the ASCII code. Check if shift/capslock is down to see if you need to add <someone plz do the math for me> to the code.

Share this post


Link to post
Share on other sites
You can always make a "EDIT" class window.

hEditWindow= CreateWindow(TEXT ("edit"), TEXT ("My Input Window"),WS_CHILD|WS_VISIBLE|WS_BORDER|ES_MULTILINE|ES_LEFT|ES_NOHIDESEL,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,hWnd,NULL,hInstance,NULL);

than you can just send messages to it with the WNDPROC

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!