This commit is contained in:
Frank Skare
2021-06-20 11:29:58 +02:00
parent 93f0c970da
commit f55dfa7a73
2 changed files with 16 additions and 7 deletions

View File

@@ -392,5 +392,10 @@ namespace mpvnet
} }
} }
} }
public static void ShowCommandPalette()
{
}
} }
} }

View File

@@ -349,15 +349,19 @@ namespace mpvnet
{ {
WindowHandle = Native.FindWindowEx(MainForm.Hwnd, IntPtr.Zero, "mpv", null); WindowHandle = Native.FindWindowEx(MainForm.Hwnd, IntPtr.Zero, "mpv", null);
if (WindowHandle != IntPtr.Zero)
{
int GWL_STYLE = -16; int GWL_STYLE = -16;
uint WS_CHILD = 0x40000000; uint WS_CHILD = 0x40000000;
uint WS_VISIBLE = 0x10000000;
uint WS_DISABLED = 0x08000000;
uint WS_CLIPSIBLINGS = 0x04000000; uint WS_CLIPSIBLINGS = 0x04000000;
uint WS_DISABLED = 0x08000000;
uint WS_VISIBLE = 0x10000000;
Native.SetWindowLong(WindowHandle, GWL_STYLE, Native.SetWindowLong(WindowHandle, GWL_STYLE,
WS_CHILD | WS_VISIBLE | WS_DISABLED | WS_CLIPSIBLINGS); WS_CHILD | WS_VISIBLE | WS_DISABLED | WS_CLIPSIBLINGS);
} }
}
try try
{ {