int msg = MessageBox(.....这里我不写了);if(msg == IDOK){ GetDlgItem("你的文本框ID")->SetText(""); GetDlgItem("你的另外一个文本框ID")->SetText("");}