MFC线程内操作主窗体 控件

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

posted @ 2016-04-07 10:08  hellohyi  阅读(970)  评论(0编辑  收藏  举报