I have a MFC dialog box with small text box and button for ok and cancel. Now in some cases I want to change caption of OK and CANCEL button to YES and NO. Is there a way to do this outside of OnInitdialog method of CDialog class
Thanks Niraj Rathi
您可以随时使用SetWindowText
函数更改这些文本(当存在对话框窗口时),例如:
GetDlgItem(IDOK)->SetWindowText("Yes");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.