How to enable the accent border instead of the title bar when enabling mica effect?

XiaoYouChR 0 信誉分
2025-01-18T05:58:36.49+00:00

I have enabled the "Display accent color on the title bar and window borders" option in Windows settings.

I applied the Mica effect to my Python program using the Win32API. The window display effect, the window Style viewed with Spy++, and the code are as follows:

用户的图像

However, I would like to emphasize that the accent color should be displayed on the window border, not the window title bar, as shown in applications like the Microsoft Store, Windows Settings, and Outlook (new).

How should I modify my code?

Windows 开发 | Windows API - Win32
Windows 商业版 | 面向 IT 专业人士的 Windows 客户端 | 用户体验 | 其他
{count} 票

你的答案

问题作者可以将答案标记为“接受的答案”,这有助于用户了解已解决作者问题的答案。