| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1248 人关注过本帖
标题:请教关于AfxMessageBox
只看楼主 加入收藏
wimphy
Rank: 1
等 级:新手上路
帖 子:56
专家分:0
注 册:2005-12-1
收藏
 问题点数:0 回复次数:2 
请教关于AfxMessageBox
AfxMessageBox("hello",MB_OK,0);
的返回值是什么?

就是要写
if(AfxMessageBox("hello",MB_OK,0)==?)
OnOK();
中的问号怎么写?
msdn中值

Return Value

Zero if there is not enough memory to display the message box; otherwise one of the following values is returned:

  • IDABORT The Abort button was selected.

  • IDCANCEL The Cancel button was selected.

  • IDIGNORE The Ignore button was selected.

  • IDNO The No button was selected.

  • IDOK The OK button was selected.

  • IDRETRY The Retry button was selected.

  • IDYES The Yes button was selected.


    请高手指示该怎么写?
搜索更多相关主题的帖子: hello msdn 
2006-03-24 12:23
myajax95
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:30
帖 子:2978
专家分:0
注 册:2006-3-5
收藏
得分:0 
if(AfxMessageBox(.....)==IDOK)
OnOK();

http://myajax95./
2006-03-24 12:38
wimphy
Rank: 1
等 级:新手上路
帖 子:56
专家分:0
注 册:2005-12-1
收藏
得分:0 
thank you very much

IDOK和AfxMessageBox()的值都是int?
2006-03-24 12:47
快速回复:请教关于AfxMessageBox
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017823 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved