Advertisement

Get text

Started by December 27, 2001 08:09 AM
1 comment, last by dadio 23 years, 2 months ago
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
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.
Advertisement
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
Languages: C/C++ C# JavaAPIs: Win32 OpenGL DirectXWeb: &#106avascript Perl JSP PHP-MySQL Oracle Database Programming</span><a href='http://www.ethereal-studios.com'>http://www.ethereal-studios.com</a></a>

This topic is closed to new replies.

Advertisement