November 28th, 2012, 07:33 AM
#1
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();
}
}
Attached Files
Regards,
SaraswathiSrinath
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width