删除的能力,关闭从任务栏任务栏、能力

2023-09-05 00:07:42 作者:初

我想删除,在我的应用程序从任务栏在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.