首页
社区
课程
招聘
[求助]关于调用MessageBox的问题
发表于: 2008-3-11 12:28 3753

[求助]关于调用MessageBox的问题

2008-3-11 12:28
3753
本人刚自学Win32汇编不久,所以才问这么简单的问题,大家不要见笑.
请问调用invoke MessageBox,NULL,offset szText1,offset szCaption1,MB_ICONASTERISK or MB_YESNO后如何捕捉按钮信息,我想让程序运行后点击钮"是"跟"否"时能出现不同的效果,但我不懂在这条语句后该怎么写,写来写去都还是点哪个按钮都出现一样的效果,大家帮帮忙

[培训]《安卓高级研修班(网课)》月薪三万计划,掌握调试、分析还原ollvm、vmp的方法,定制art虚拟机自动化脱壳的方法

收藏
免费 0
支持
分享
最新回复 (4)
雪    币: 202
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
用VC++写一个,然后反汇编
分析一下应该好解决这个问题吧~!
2008-3-11 12:41
0
雪    币: 846
活跃值: (221)
能力值: (RANK:570 )
在线值:
发帖
回帖
粉丝
3
Return Value

If a message box has a Cancel button, the function returns the IDCANCEL value if either the ESC key is pressed or the Cancel button is selected. If the message box has no Cancel button, pressing ESC has no effect.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

If the function succeeds, the return value is one of the following menu-item values.

IDABORT Abort button was selected.
IDCANCEL Cancel button was selected.
IDCONTINUE Continue button was selected.
IDIGNORE Ignore button was selected.
IDNO No button was selected.
IDOK OK button was selected.
IDRETRY Retry button was selected.
IDTRYAGAIN Try Again button was selected.
IDYES Yes button was selected.

下次请自己查MSDN,谢谢
2008-3-11 12:55
0
雪    币: 200
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
学习。。。正在努力学习中。。。。
帮你顶一下帖
2008-3-11 13:07
0
雪    币: 247
活跃值: (10)
能力值: ( LV7,RANK:100 )
在线值:
发帖
回帖
粉丝
5
MSDN是个好东东
2008-3-11 13:58
0
游客
登录 | 注册 方可回帖
返回
//