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 API - Win32
Windows API - Win32
一组适用于桌面和服务器应用程序的核心 Windows 应用程序编程接口 (API)。 以前称为 Win32 API。
131 个问题
Windows 11
Windows 11
专为提高工作效率、创造力和易用性而设计的 Microsoft 操作系统。
47 个问题
{count} 票

你的答案

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