GetDlgItem(IDC_STATIC//这里是控件id)->SetWindowText("successful"); 转载于:https://www.cnblogs.com/begoogatprogram/p/5946946.html