WS_EX_APPWINDOW 有什么作用? [英] What does WS_EX_APPWINDOW do?

查看:107
本文介绍了WS_EX_APPWINDOW 有什么作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要么这只是一个没有文档的不推荐使用的窗口样式,要么我在搜索它时犯了一个缺陷.

Either this is just a deprecated window style with no documentation, or I've made a flaw in searching for it.

我的问题是,这个标志有什么作用?是否有我可能需要的等效支持?

My question is, what does this flag do? Is there a supported equivalent to it that I may need?

感谢您的建议!

推荐答案

WS_EX_APPWINDOW 是一种扩展的窗口样式,记录在 MSDN.它绝对不会被弃用,并且是一种完全支持和广泛使用的样式.

WS_EX_APPWINDOW is an extended window style that is documented on MSDN. It is most definitely not deprecated and is a fully supported and widely used style.

文档指出样式:

当窗口可见时强制将顶层窗口放到任务栏上.

Forces a top-level window onto the taskbar when the window is visible.

这是一个相对平淡的声明,低估了这种风格的目的.通常,将顶级窗口强制置于任务栏上的属性是顶级窗口是无主的.默认情况下,顶级拥有的窗口不会出现在任务栏上.因此,如果出于某种原因您希望将一个顶层拥有的窗口放在任务栏上,那么 WS_EX_APPWINDOW 就是解决方案.

This is a relatively bland statement that undersells the purpose of this style. Normally the property that forces a top-level window onto the taskbar is the fact that the top-level window is unowned. Top-level owned windows do not, by default, appear on the taskbar. So, if for some reason you wish to put a top-level owned window onto the taskbar, then WS_EX_APPWINDOW is the solution.

虽然有一篇 MSDN 文章 描述了哪些规则窗口出现在任务栏中,它并不像它应该的那样清晰.Raymond Chen 的文章 更准确地描述了它:

Although there is an MSDN article that describes the rules for which windows appear in the taskbar, it is not as clear as it should be. Raymond Chen's article describes it much more precisely:

关于哪些窗口进入任务栏有一些基本规则.在简短:

There are some basic rules on which windows go into the taskbar. In short:

  • 如果设置了 WS_EX_APPWINDOW 扩展样式,那么它将显示(当可见时).
  • 如果窗口是顶级无主窗口,那么它将显示(当可见时).
  • 否则它不会显示.

这篇关于WS_EX_APPWINDOW 有什么作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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