怎么弹出对确认对话框?

yangzhiwei27 2003-10-20 12:37:26
怎样才能弹出待确认和取消的对话框,多谢!!
...全文
671 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
apcad 2003-10-20
  • 打赏
  • 举报
回复
MessageBox("嗨", "嗨!", MB_OKCANCEL|MB_ICONQUETION);
feeboby 2003-10-20
  • 打赏
  • 举报
回复
MessageBox,可以在style里加一点东西,比方有确认,取消按钮
icr_mio 2003-10-20
  • 打赏
  • 举报
回复
ft...
MessageBox
AfxMessageBox
icr_mio 2003-10-20
  • 打赏
  • 举报
回复
不客气:)
yangzhiwei27 2003-10-20
  • 打赏
  • 举报
回复
To icr_mio:
不好意思,分给光了,多谢了:)
icr_mio 2003-10-20
  • 打赏
  • 举报
回复
你要判断返回值
IDOK,点了确定
IDCANCEL,点了取消
yangzhiwei27 2003-10-20
  • 打赏
  • 举报
回复
可是我按了取消并没有中断程序执行
arvid_gs 2003-10-20
  • 打赏
  • 举报
回复
AfxMessageBox("Are you sure?", MB_OKCANCEL);
wuxfBrave 2003-10-20
  • 打赏
  • 举报
回复
AfxMessageBox("Are you sure?", MB_OKCANCEL);

Message_Box Types

MB_ABORTRETRYIGNORE The message box contains three pushbuttons: Abort, Retry, and Ignore.
MB_OK The message box contains one pushbutton: OK.
MB_OKCANCEL The message box contains two pushbuttons: OK and Cancel.
MB_RETRYCANCEL The message box contains two pushbuttons: Retry and Cancel.
MB_YESNO The message box contains two pushbuttons: Yes and No.
MB_YESNOCANCEL The message box contains three pushbuttons: Yes, No, and Cancel.

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧