GetDlgItem("按钮ID")->SetWindowText(_T("按钮的caption"));
CButton *pBtn = (CButton *)GetDlgItem(IDC_BUTTON1);pBtn->SetWindowText("Caption"); ///还可以这样SetDlgItemText(IDC_BUTTON1,"Caption");