VC++6.0中按钮的使用

砸在事件过程中修改按钮的caption?
2024-12-21 21:37:40
推荐回答(2个)
回答1:

GetDlgItem("按钮ID")->SetWindowText(_T("按钮的caption"));

回答2:

CButton *pBtn = (CButton *)GetDlgItem(IDC_BUTTON1);
pBtn->SetWindowText("Caption");

///还可以这样
SetDlgItemText(IDC_BUTTON1,"Caption");