setWindowCompositionAttribute After setting transparency, how to restore

XUWANBIN 201 Reputation points
2022-12-10T14:22:59.777+00:00

When I use setWindowCompositionAttribute to set a window to be transparent, what is the correct way to restore the window to its original state when I can not make the window transparent

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,922 questions
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 86,871 Reputation points
    2022-12-10T16:15:11.423+00:00

    With ACCENT_DISABLED instead of ACCENT_ENABLE_BLURBEHIND or other value
    Test :
    269195-setwindowcompositionattribute.gif


0 additional answers

Sort by: Most helpful

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.