
Get text
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

December 27, 2001 08:19 AM
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.
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

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: javascript 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
Popular Topics
Advertisement
Recommended Tutorials
Advertisement