Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions OverlayPlugin.Core/OverlayForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,11 @@ protected override System.Windows.Forms.CreateParams CreateParams
const int WS_EX_TOPMOST = 0x00000008;
const int WS_EX_LAYERED = 0x00080000;
const int CP_NOCLOSE_BUTTON = 0x200;
const int WS_EX_NOACTIVATE = 0x08000000;

var cp = base.CreateParams;
cp.ExStyle = cp.ExStyle | WS_EX_TOPMOST | WS_EX_LAYERED;
cp.ClassStyle = cp.ClassStyle | CP_NOCLOSE_BUTTON;
cp.ExStyle = cp.ExStyle | WS_EX_TOPMOST | WS_EX_LAYERED | WS_EX_NOACTIVATE;
cp.ClassStyle = cp.ClassStyle | CP_NOCLOSE_BUTTON | WS_EX_NOACTIVATE;

return cp;
}
Expand Down