MFC dialog 间 交互[2]

          CMainFrame * pFrame = (CMainFrame *)AfxGetMainWnd();
    
    CShuiPWY * pView = (CShuiPWY *)pFrame->GetActiveWindow();
      pView->m_SPWYEdit_Status.SetWindowTextW(_T("状态:连接成功"))

如何通过父级Dialog  向子级Dialog 传递参数,该段代码写在MainFrm.cpp 中,

CShuiPWY  为目标dialog, GetActiveWindow() 获得目标窗体

posted on 2012-04-11 17:22  markygis  阅读(206)  评论(0编辑  收藏  举报