I saw today how to use UpdateData() to grab some text in an EditBox and put it in a MessageBox, when I click a button. But I donít think I understand UpdateData() right.
Iíve defined a CString for the Edit Box in OnInitDialog() like this:
I donít get what UpdateData() do here- could you please explain?
m_strread = "the last supper";
The lines for displaying that string in the MessageBox are:
As I understand UpdateData() above tells to update the MessageBoxís data to EditBoxís data. Am I right?
DDX and DDV Routines.
If you really want to learn MFC, get a good book.
UpdateData(TRUE) updates the corresponding member variable with the data in the control.
UpdateData(FALSE) does the opposite.