比如你resultDlg对话框的IDC_EDIT5绑定了一个变量 m_str;CResultDlg resultDlg;resultDlg.m_str="要显示的值";resultDlg.DoModal();