删除的能力,关闭从任务栏 [英] Remove ability to close from taskbar

查看:133
本文介绍了删除的能力,关闭从任务栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想删除,在我的应用程序从任务栏在Windows 7中关闭一个窗口的能力,为用户:

I would like to remove the ability for a user to close a window in my application from the taskbar in windows 7:

图像中的关闭按钮不能用。

The close button in the image should not be available.

有什么建议?

推荐答案

您不应该这样做。窗口管理/装饰留给了窗口管理器,你倒是应该处理好关闭事件以某种方式,避免了应用程序了退出。

You shouldn't do this. Window managing/decorating is left to the window manager, you should rather handle the "close" event in some way, and avoid the applicaiton exiting.

此外,鼠标中间(mouse2)的任何部分是preVIEW也将关闭该窗口,所以它不只是隐藏的问题按钮。

Also, middle clicking (mouse2) on any part of that preview will also close the window, so it's not a matter of just hiding that button.

这篇关于删除的能力,关闭从任务栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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