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

XiaoYouChR 0 Reputation points
2025-01-18T06:07:24.2933333+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
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,717 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Eleni Iacovides 0 Reputation points
    2025-01-18T17:01:11.2966667+00:00

    HRESULT GetAllAccessRights(

    [in] LPWSTR lpProperty,

    [out] PACTRL_ACCESSW_ALLOCATE_ALL_NODES *ppAccessList,

    [out] PTRUSTEEW *ppOwner,

    [out] PTRUSTEEW *ppGroup

    );


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.