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:
Code:
m_strread = "the last supper";
UpdateData(FALSE);
I don’t get what UpdateData() do here- could you please explain?
The lines for displaying that string in the MessageBox are:
Code:
UpdateData(TRUE);
AfxMessageBox(m_strread);
As I understand UpdateData() above tells to update the MessageBox’s data to EditBox’s data. Am I right?
Thanks.