When should WS_EX_NOREDIRECTIONBITMAP be used?

MSDN says ( Advanced window styles ):

WS_EX_NOREDIRECTIONBITMAP : Window does not display redirection surface. This is for windows that do not have visible content or that use mechanisms other than surfaces to ensure they visually match.

What in this case means “window visualization on the redirection surface” and “mechanisms other than surfaces”? Which of them: GDI, D3D9, D3D11, D3D12 should be considered the first and last? Should I use this advanced window style when I just paint with Direct3D?

+7
c ++ windows winapi
source share
1 answer

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

One thing to worry about when using the api is that there will not necessarily be an opaque background for the window, so dwm can do a lot of extra work mixing it with things outside the window that are not actually visible

+2
source share

All Articles