how do I make a simple text box that returns what's in it after it's closed?
something like:
char* attr=somesortoftextbox("Text box message, enter stuff below");
I've never really done anything with the windows gui before except for stuff like:
MessageBox (NULL, TEXT ("Hey! Listen!") , TEXT ("Navi"), MB_OK);
[C++] textbox
Moderator: MaxCoderz Staff
-
- MCF Legend
- Posts: 1601
- Joined: Mon 20 Dec, 2004 8:45 am
- Location: Budapest, Absurdistan
- Contact:
It depends on what API you are programming. If you’re using raw win32, there’s no such a simple way to do that. The easiest way I can think of is creating a dialog box resource, using the DialogBox function and extracting the text from the edit control you put on it with a WM_GETTEXT message.