using System; using System.Drawing; public static class DisplayFusionFunction { public static void Run(IntPtr windowHandle) { Rectangle monitorRect = BFS.Monitor.GetMonitorBoundsByWindow(windowHandle); BFS.Window.SetSizeAndLocation(windowHandle, (int)(monitorRect.Width * 0.33), 0, monitorRect.Width - (int)(monitorRect.Width * 0.33), monitorRect.Height); } }
0.33
using System; using System.Drawing; public static class DisplayFusionFunction { public static void Run(IntPtr windowHandle) { Rectangle monitorRect = BFS.Monitor.GetMonitorBoundsByWindow(windowHandle); BFS.Window.SetSizeAndLocation(windowHandle, (int)(monitorRect.Width * 0.33), 0, monitorRect.Width - (int)(monitorRect.Width * 0.33), monitorRect.Height); } }
0.33
0.33
GetMonitorBoundsByWindow
GetMonitorWorkAreaByWindow
using System; using System.Drawing; public static class DisplayFusionFunction { public static void Run(IntPtr windowHandle) { Rectangle monitorRect = BFS.Monitor.GetMonitorBoundsByWindow(windowHandle); BFS.Window.SetSizeAndLocation(windowHandle, (int)(monitorRect.Width * 0.3333), 0, monitorRect.Width - (int)(monitorRect.Width * 0.55), monitorRect.Height); } }
using System; using System.Drawing; public static class DisplayFusionFunction { public static void Run(IntPtr windowHandle) { Rectangle monitorRect = BFS.Monitor.GetMonitorWorkAreaByWindow(windowHandle); BFS.Window.SetSizeAndLocation(windowHandle, monitorRect.Left + (int)(monitorRect.Width * 0.3333), monitorRect.Top, monitorRect.Width - (int)(monitorRect.Width * 0.3333), monitorRect.Height); } }
0.55