admin管理员组文章数量:1388134
DarkTaskDialog
is an excellent way to support a dark version of the task dialog in a MFC project. Example from the documentation:
I have added support for dark mode to about 95% of controls in my MFC application. And, one of the remaining ones is the Date Time Picker Control. The API provides methods to colourize the calendar component, but not the main control. Here are some examples:
Now, DarkTaskDialog
uses Microsoft Detours to override methods and do custom colours. I did some research for the Date Time Picker and found:
So it looks like there are some similar themes colours we could use Microsoft Detours to follow the same principle, to render a dark mode version.
I have not yet ventured into trying to do this because I fear a conflict between having two components both using Microsoft Detours to detour the same function.
Has anyone had experience with using detours for multiple things in the same project?
本文标签:
版权声明:本文标题:visual c++ - How to have two different components both using Microsoft Detours to detour the same function? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744541558a2611643.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论