Replies: 1 comment
-
I try my demo, but it also return -2147467259 error code. You can find my demo code in https://github.com/lindexi/lindexi_gd/tree/cb002c08cbb0e1aa99c854d0191f05365a131dc6/WPFDemo/JiwhihiboCawneqewhemnur |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Recently, I've been learning how to implement a custom window frame using the tutorial on the Microsoft Docs page: https://learn.microsoft.com/en-us/windows/win32/dwm/customframe.
I followed the steps closely, and most features work correctly except for Painting the Caption Title. When I try to use
DrawThemeTextEx
, it fails and returns the error code -2147467259.I found this discussion on Stack Overflow: https://stackoverflow.com/questions/7199386/re-drawing-the-window-title-when-using-custom-chrome-and-dwm. It mentions that WPF uses DirectX for rendering, while
DrawThemeTextEx
relies on GDI. The post suggests that DirectX and GDI are incompatible in this context.How can I use
DrawThemeTextEx
in a WPF?Beta Was this translation helpful? Give feedback.
All reactions