mirror of
https://github.com/ShareX/ShareX.git
synced 2024-08-07 14:28:42 +12:00
Hide NotificationForm from Alt+Tab and Win+Tab menu
This commit is contained in:
parent
4ee76af0ea
commit
7ba3956d0d
1 changed files with 9 additions and 0 deletions
|
@ -48,6 +48,15 @@ public class NotificationForm : Form
|
||||||
private int urlPadding = 3;
|
private int urlPadding = 3;
|
||||||
private Size textRenderSize;
|
private Size textRenderSize;
|
||||||
|
|
||||||
|
protected override CreateParams CreateParams {
|
||||||
|
get {
|
||||||
|
// Turn on WS_EX_TOOLWINDOW style bit
|
||||||
|
CreateParams cp = base.CreateParams;
|
||||||
|
cp.ExStyle |= 0x80;
|
||||||
|
return cp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public NotificationForm(int duration, int fadeDuration, ContentAlignment placement, Size size, NotificationFormConfig config)
|
public NotificationForm(int duration, int fadeDuration, ContentAlignment placement, Size size, NotificationFormConfig config)
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
Loading…
Reference in a new issue