terrafx / terrafx.interop.windows

Interop bindings for Windows.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BufferedPaintMakeOpaque should return HRESULT

rickbrew opened this issue · comments

It's a macro around BufferedPaintSetAlpha, which returns HRESULT. Easy to miss. https://docs.microsoft.com/en-us/windows/win32/api/uxtheme/nf-uxtheme-bufferedpaintsetalpha

The BufferedPaintMakeOpaque macro, which is defined in uxtheme.h, sets alpha values to 255. It is typically used to call GDI to draw into a memory buffer and then to make it opaque in order to draw it on glass.

Same for SetWindowThemeNonClientAttributes.

I'm not using either of these, btw.