YesNo MessageBox not closing when x-button clicked

杀马特。学长 韩版系。学妹 提交于 2019-12-01 11:28:34

The Close button (in MsgBox's title bar): Since the MsgBox window is a built-in feature of the operating system, its X button is enabled only when certain buttons are present. If there is only an OK button, clicking the X button is the same as pressing OK. Otherwise, the X button is disabled unless there is a Cancel button, in which case clicking the X is the same as pressing Cancel.

http://www.autohotkey.com/docs/commands/MsgBox.htm

Its the default behavior! from the time it was MsgBox to the time its MessageBox!

Check out this CodeProject article, which outlines spinning your own MessageBox class. There's a section on disabling the close button.

Padmanabha Holla

When you delete files in explorer (when delete confirmation is checked in recycle bin properties), a message box appears and asks "Are you sure you want to move these x items to recycle bin?" with a caption "Delete confirmation" and X at right corner. Escape also works. Buttons available are "yes" and "no" only. How can we get this done?

Either Microsoft is not following their on guidelines or not making this available for the developer.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!