CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Threaded View

  1. #1
    Join Date
    Nov 2011
    Location
    India
    Posts
    333

    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 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
  •  





Click Here to Expand Forum to Full Width

Featured