最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

visual c++ - How to have two different components both using Microsoft Detours to detour the same function? - Stack Overflow

programmeradmin3浏览0评论

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?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论