Chinaunix首页 | 论坛 | 博客
  • 博客访问: 81556
  • 博文数量: 22
  • 博客积分: 1040
  • 博客等级: 少尉
  • 技术积分: 291
  • 用 户 组: 普通用户
  • 注册时间: 2008-05-15 11:20
文章分类

全部博文(22)

文章存档

2009年(1)

2008年(21)

我的朋友

分类: C/C++

2008-05-29 09:49:39

begin
    if Application.MessageBox('确实要退出吗?','提示',mb_yesno)=id_yes then
    close;
end;

MB_AbortRetryIgnore   
The message box contains three push buttons: Abort, Retry, And Ignore.
MB_OK   
The message box contains one push button: OK. This is the default.
MB_OkCancel   
The message box contains two push buttons: OK And Cancel.
MB_RetryCancel   
The message box contains two push buttons: Retry And Cancel.
MB_YESNO   
The message box contains two push buttons: Yes And No.
MB_YesNoCancel   
The message box contains three push buttons: Yes, No, And Cancel.]
-----------------------------------------
IDOK    1    The user chose the OK button.
IDCANCEL2    The user chose the Cancel button.
IDABORT    3    The user chose the Abort button.
IDRETRY    4    The user chose the Retry button.
IDIGNORE    5    The user chose the Ignore button.
IDYES    6    The user chose the Yes button.
IDNO    7    The user chose the No button.
if (MessageBox(strTemp.c_str(),"提示",MB_ICONINFORMATION|MB_YESNO) ==7)
  return;
 
阅读(1220) | 评论(0) | 转发(0) |
0

上一篇:socket封装类

下一篇:unicode

给主人留下些什么吧!~~