Simple controls--properties, methods, values...
Ok, I'm starting to get the hang of putting together MFC dialog-based applications with VC++6.0. I can put the basic controls (edit boxes, buttons, etc.) into a dialog box, and I have a vague understanding of ClassWizard. What I'm having trouble with is making it all work together.
What I'd like to do is create a program that has only a single-line edit control and a button. When the user presses the button, I want to have a message box (AfxMessageBox()) pop up, which contains the string that was entered into the edit control. Can anybody walk me through this process?
Also, once I've got that, how do I change the value of the edit control? Like after the user pressed the button, how would I change the value of the text box to "blah?" I know from other OOP languages that the text box is an object, and it has various properties that can be changed--but I don't know how C++ deals with that. Your help is greatly appreciated!