Parent to Child Dialog Data Transfer & Vise Versa in VC++
Hi,
I transferred data from parent to child.
problem occurred while send data from child to parent dialog.
Kindly find the attachment & help me.
void CChildDlg::OnBnClickedCancel()
{
child1ctrl.GetWindowText(parObj.parentval);
::AfxMessageBox(parObj.parentval);
//parObj.parentctrl.SetWindowText(child1val);
if(UpdateData(true))
{
((CTestDlg*)m_pParent)->parentval = child1val;
((CTestDlg*)m_pParent)->UpdateData(false);
// DestroyWindow();
}
}
Regards,
SaraswathiSrinath
Bookmarks