MFC线程内操作主窗体 控件

CWnd* h_d2 = AfxGetApp()->GetMainWnd(); //获取主窗口的句柄
h_d2-> GetDlgItem(IDC_EDIT2)->GetWindowText(strSend); //IDC_APOETRY_EDIT为编辑框的ID

原文地址:https://www.cnblogs.com/xuandi/p/5362358.html