Parent to Child Dialog Data Transfer & Vise Versa in VC++
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Thread: Parent to Child Dialog Data Transfer & Vise Versa in VC++

Threaded View

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

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center