标题:请教关于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



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-52464-1-1.html




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

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