消息框关闭图标 [英] Message box close icon

查看:90
本文介绍了消息框关闭图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何在消息框上启用关闭图标..
  How can I enable my close icon on message box..

推荐答案

我不认为有任何方法可以创建MessageBox使用MB_YESNO时启用关闭框.为了启用关闭框,您必须将MessageBox与"Cancel"按钮一起使用.按钮(MB_OK,MB_OKCANCEL,MB_YESNOCANCEL),因为单击关闭按钮等效于单击取消".如果您只想拥有是",和否"按钮,但具有启用的关闭框,您可以使用模式对话框自己进行模拟.

希望有帮助,
Nick

I don't believe there is any way to create a MessageBox with the close box enabled when using MB_YESNO.  In order for the close box to be enabled, you must be using a MessageBox with a "Cancel" button (MB_OK, MB_OKCANCEL, MB_YESNOCANCEL), because clicking on the close button is equivalent to clicking "Cancel".  If you want to have only "Yes" and "No" buttons but with an enabled close box, you could simulate it yourself with a modal dialog.

Hope that helps,
Nick


这篇关于消息框关闭图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆