这可能非常简单,但我是 MFC 的新手。
我有一个消息框:
MessageBox("Do You Want to Save the Configuration Changes","NDS",1);
有确定和取消选项。我想在单击“确定”时编写我的代码
最佳答案
if(MessageBox("Blah", "NDS", 1) == IDOK)
{
// they hit okay
}
http://msdn.microsoft.com/en-us/library/ms645505(VS.85).aspx
关于c++ - 如何在 MessageBox 上执行我的代码 Ok click,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4184366/