WPF界面最大化不覆盖任务栏 ,通过计算任务栏尺寸 IntPtr taskBarWnd = FindWindow("Shell_TrayWnd", null); IntPtr tray = FindWindowEx(taskBarWnd, IntPtr.Zero, "TrayNotifyWnd", null); IntPtr trayclock = FindWindowEx(tray, IntPtr.Zero, "TrayClockWClass", null);