CMainFrame * pFrame = (CMainFrame *)AfxGetMainWnd(); CShuiPWY * pView = (CShuiPWY *)pFrame->GetActiveWindow(); pView->m_SPWYEdit_Status.SetWindowTextW(_T("状态:连接成功"))
如何通过父级Dialog 向子级Dialog 传递参数,该段代码写在MainFrm.cpp 中,
CShuiPWY 为目标dialog, GetActiveWindow() 获得目标窗体