何时应使用WS

编程入门 行业动态 更新时间:2024-10-26 08:30:43
本文介绍了何时应使用WS_EX_NOREDIRECTIONBITMAP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

MSDN说(扩展的窗口样式):

WS_EX_NOREDIRECTIONBITMAP :窗口不会呈现到重定向表面。这适用于没有可见内容或使用表面以外的机制提供视觉效果的窗口。

WS_EX_NOREDIRECTIONBITMAP: The window does not render to a redirection surface. This is for windows that do not have visible content or that use mechanisms other than surfaces to provide their visual.

在这种情况下该做什么窗口渲染到重定向表面与表面以外的机制是什么意思?其中哪个:GDI,D3D9,D3D11,D3D12算作前者还是后者?

What does in this case "window render to a redirection surface" vs "mechanisms other than surfaces" mean? Which of these: GDI, D3D9, D3D11, D3D12 count as the former vs the latter? Am I supposed to use this extended window style when I'm just drawing using Direct3D?

推荐答案

DirectComposition是您要使用的主要api,我应该在使用Direct3D绘图时使用这种扩展窗口样式吗?可以用来绘制没有重定向位图的窗口。没有DirectComposition的交换链上的DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL也可能触发此模式。

DirectComposition is the main api that you can use to draw a window with no redirection bitmap. DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL on swapchains without DirectComposition might also trigger this mode.

使用api时要担心的一件事是窗口背景不一定是不透明的,所以dwm可以做很多额外的工作,将窗口后面实际上不可见的东西融合在一起

One thing to worry about when using the api is that there won't necessarily be an opaque window background, so dwm can do a lot of extra work blending with things behind the window that aren't actually not visible

更多推荐

何时应使用WS

本文发布于:2023-11-03 06:29:10,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1554453.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:时应   WS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!