Angus,
One way would be to have a public method in your document class to
enable your dialog to call back passing the string. If you pass a
pointer to your document in the constructor of your dialog (and save
it in a member variable) the dialog will then have access to the
function. The document function should use UpdateAllViews to get any
views updated with the new text.
Dave
MyDialog dlg;
if(dlg.DoModal() == IDOK) {
m_csMainViewText = dlg.csText;
Invalidate(); // Assumes this will cause m_csMainViewText to be drawn
in the view
}
Tom
"Angus" <angus...@gmail.com> wrote in message
news:94fbbdeb-c55f-4158...@f19g2000yqo.googlegroups.com...