Text box

How could I create a text box, which accepts input and stores it somehow (like in an array or a string) so that I can output it to a text file? I want to do the output part myself.

I looked on msdn and have Googled for it several times, and could not find anything which worked. Does anyone know a way of doing this? I'd also like to be able to specify the size of the box, if possible.

Thanks.
To create a textbox use CreateWindow with "edit" as class name http://msdn.microsoft.com/en-us/library/ms632679(VS.85).aspx
To get its text use GetWindowText http://msdn.microsoft.com/en-us/library/ms633520(VS.85).aspx
To store the resulting character array you can initialize the buffer with the size retuned by GetWindowTextLength http://msdn.microsoft.com/en-us/library/ms633521(VS.85).aspx
Topic archived. No new replies allowed.