using WS = BFS.WindowEnum.WindowStyle;
public static class DisplayFusionFunction
private static void SetFlag(ref WS style, WS mask, IntPtr handle) {
style = BFS.Window.HasWindowStyle(mask, handle) ? style &= ~mask : style |= mask;
public static void Run(IntPtr handle)
WS style = BFS.Window.GetWindowStyle(handle);
SetFlag(ref style, WS.WS_CAPTION, handle);
SetFlag(ref style, WS.WS_SYSMENU, handle);
SetFlag(ref style, WS.WS_THICKFRAME__SIZEBOX, handle);
SetFlag(ref style, WS.WS_MINIMIZEBOX, handle);