2013-04-30
展开全部
这有何难,public成员对象不就可以传过来了吗:
CMainDlg:
public: CString m_StaticString;//DDX_Text(pDX, IDC_STATIC_RESULT, m_StaticString);
void CMainDlg::OnButtonInput()
{
CSubDlg subDlg;
int Response = subDlg.DoModal();
if (nResponse == IDOK)
{
m_StaticString = subDlg.m_EditString;
}
else if (nResponse == IDCANCEL)
{
m_StaticString = _T("");
}
UpdateData(FALSE);
}
CSubDlg:
public: CString m_EditString;//ON_EN_CHANGE(IDC_EDIT1, OnChangeEdit1)
void CSubDlg::OnOK()
{
UpdateData(TRUE);
CDialog::OnOK();
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询