fix borderless window not minimizable from taskbar

This commit is contained in:
Frank Skare
2019-07-13 03:24:15 +02:00
parent 83658aa476
commit 5c053bb5eb
2 changed files with 12 additions and 0 deletions

View File

@@ -350,6 +350,14 @@ namespace mpvnet
Msg.ShowError(e.ExceptionObject.ToString());
}
protected override CreateParams CreateParams {
get {
CreateParams cp = base.CreateParams;
cp.Style |= 0x00020000 /* WS_MINIMIZEBOX */;
return cp;
}
}
protected override void WndProc(ref Message m)
{
//System.Diagnostics.Debug.WriteLine(m);