How to set text field content as a string?

I am just wondering, I could never figure it out. I make text fields like this:
 
CreateWindow("TEXT", "", WS_VISIBLE | WS_CHILD, 50, 50, 50, 50, hwnd, NULL, NULL, NULL);


Would it be (HMENU) 1 replacing the first NULL? Please help
what exactly are you creating? if u're talking about static text control, then you can set it's text with WM_SETTEXT message after it has been created or you can set the second parameter in "CreateWindow" to the text you want to use - http://msdn.microsoft.com/en-us/library/windows/desktop/ms632679(v=vs.85).aspx
Last edited on
Well, I am not really *creating* anything. I am just messing around. I wanted to make a hello program in windows, where the user enters his name and it says it back to him
Topic archived. No new replies allowed.