<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>DisplayFusion RSS: Fullscreen (Span)</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=7133c6fa-4572-4919-b3a7-5f074e9edc5c" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=7133c6fa-4572-4919-b3a7-5f074e9edc5c</link>
<description>DisplayFusion RSS: Fullscreen (Span)</description>
<lastBuildDate>Sat, 18 Apr 2026 05:30:03 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=7133c6fa-4572-4919-b3a7-5f074e9edc5c</generator>
<item>
<title>Fullscreen (Span)</title>
<link>https://www.displayfusion.com/Discussions/View/fullscreen-span/?ID=7133c6fa-4572-4919-b3a7-5f074e9edc5c</link>
<pubDate>Sun, 17 Dec 2017 05:35:20 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/fullscreen-span/?ID=7133c6fa-4572-4919-b3a7-5f074e9edc5c</guid>
<category>DisplayFusion</category>
<description><![CDATA[https://1drv.ms/i/s!AijEU_gJRBQNgeg-BlXQpKwjFbvhZw
So I recently decided it would be cool to have 2 'wing' monitors next to my primary display
It consists of 2 1920x1080 monitors in portrait mode, and a single 4k TV in the center. (with the chosen monitors matching the pixel density of the prim...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
https://1drv.ms/i/s!AijEU_gJRBQNgeg-BlXQpKwjFbvhZw<br/>
So I recently decided it would be cool to have 2 'wing' monitors next to my primary display<br/>
It consists of 2 1920x1080 monitors in portrait mode, and a single 4k TV in the center. (with the chosen monitors matching the pixel density of the primary display)<br/>
<br/>
I was intending to game on this.. ofcourse, but Imagine my shock when Nvidias surround driver doesnt support portrait mode... <br/>
<br/>
So on to display fusion <img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/face-smile.light.svg" alt=":)" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData=":)" HelpButtonDataAlign="BelowMiddle" /><br/>
<br/>
After several hours of problems (apparently trying to set the vertical position ABOVE the desktop work area is a big no-no, so I had to set the horizontal position to the left of the desktop work area instead)<br/>
<br/>
I have this (attached below) which takes a Window, removes its boarder, and spans it across all my displays in a way that covers them Fully.<br/>
<br/>
Please note that there is 240x1080 pixels missing from both the top left, and top right of your screen (which may be a big deal if your game has UI elements like health-bars at the top of the screen. so your results may vary<br/>
<br/>
This is also hard-coded for my specific dimensions; if yours differ, this is the line that needs changed: (just ctrl+f to find it in the code)<br/>
<br/>
 BFS.Window.SetSizeAndLocation(windowHandle, -1080, 0, 6000, 2160);<br/>
<br/>
<div id="" class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019d9f11498d70989b3ecf6530a93d22" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019d9f11498d70989b3ecf6530a93d22Js'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019d9f11498d70989b3ecf6530a93d22Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">//##  Default (DisplayFusion)  ##//
using System;
using System.Data;
using System.Drawing;
using System.Management;
using System.Web;
using System.Windows.Forms;
using System.Xml;

//##  Default  ##//
using System.Runtime.InteropServices;

public static class DisplayFusionFunction{

/*#####################################################################################################################################################################################################################################################################################################~{*/
/*//////|   Run   |////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////g2*/
/*#####################################################################################################################################################################################################################################################################################################~}*/

  public static void Run(IntPtr windowHandle){
    if(verify_IgnoredWindow(windowHandle))
      {return;}

    if(! verify_IgnoredStyleWindow(windowHandle)){
    
       maximize_Window(windowHandle);
       remove_Border  (windowHandle);

    }
    else
      {BFS.Window.Maximize(windowHandle);}

  }

/*#####################################################################################################################################################################################################################################################################################################~{*/
/*//////|   Ignored Windows   |/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////g2*/
/*#####################################################################################################################################################################################################################################################################################################~}*/

  static string[] IGNORED_WINDOW_CLASSES = new string[]{
    //##  System  ##//
    "MultitaskingViewFrame",        //  Windows Alt-Tab & Win-Tab Screens
    "Progman",                      //  Windows Desktop
    "WorkerW",                      //  Windows Desktop
    "ApplicationFrameWindow",       //  Windows Settings
    "Windows.UI.Core.CoreWindow",   //  Windows System Menus
    "NotifyIconOverflowWindow",     //  Windows System Tray
    "TaskManagerWindow",            //  Windows Task Manager
    "Shell_TrayWnd",                //  Windows Taskbar
    "TaskListThumbnailWnd",         //  Windows Taskbar Thumbnail
    //##  Apps  ##//
    "ClassicShell.CMenuContainer",  //  ClassicStart
    "ExplorerBrowserOwner",         //  Fences
    "WMP Skin Host",                //  Windows Media Player Visualizer
    "CWmpControlCntr",              //  Windows Media Player Visualizer (Full-Screen)
  };

  static string[] IGNORED_WINDOW_STYLE_CLASSES = new string[]{
    //##  System  ##//
    "CabinetWClass",       //  Windows File Explorer
    //##  Apps  ##//
    "GomPlayer1.x",        //  GOM Player
    "Chrome_WidgetWin_1",  //  Google Chrome
    "ThunderRT6Main",      //  XYplorer
    "ThunderRT6FormDC",    //  XYplorer
  };

/*#####################################################################################################################################################################################################################################################################################################~{*/
/*//////|   Utils   |////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////g2*/
/*#####################################################################################################################################################################################################################################################################################################~}*/

  static bool verify_IgnoredWindow(IntPtr windowHandle){
    string windowClass = BFS.Window.GetClass(windowHandle);
    return (Array.IndexOf(IGNORED_WINDOW_CLASSES, windowClass) &gt;= 0);
  }

  static bool verify_IgnoredStyleWindow(IntPtr windowHandle){
    string windowClass = BFS.Window.GetClass(windowHandle);
    return (Array.IndexOf(IGNORED_WINDOW_STYLE_CLASSES, windowClass) &gt;= 0);
  }

  static BFS.WindowEnum.WindowStyle[] borderedWindowStyles = new BFS.WindowEnum.WindowStyle[]{
    BFS.WindowEnum.WindowStyle.WS_CAPTION,
    BFS.WindowEnum.WindowStyle.WS_SYSMENU,
    BFS.WindowEnum.WindowStyle.WS_THICKFRAME__SIZEBOX,
    BFS.WindowEnum.WindowStyle.WS_MINIMIZEBOX,
    BFS.WindowEnum.WindowStyle.WS_MAXIMIZEBOX,
  };

  static void remove_Border(IntPtr windowHandle){
    BFS.WindowEnum.WindowStyle style = BFS.Window.GetWindowStyle(windowHandle);
    foreach(BFS.WindowEnum.WindowStyle subStyle in borderedWindowStyles)
      {style &= ~subStyle;}
    BFS.Window.SetWindowStyle(style, windowHandle);
  }

  static void maximize_Window(IntPtr windowHandle){
    BFS.Window.SetSizeAndLocation(windowHandle, -1080, 0, 6000, 2160);
  }

  [DllImport("user32.dll")]
  static extern IntPtr SetWindowPos(IntPtr hWnd, int hWndInsertAfter, int x, int y, int cx, int cy, int wFlags);
  const short SWP_NOZORDER   = 0x4;
  const int   SWP_SHOWWINDOW = 0x0040;

}//  /DisplayFusionFunction</pre><textarea id="code019d9f11498d70989b3ecf6530a93d22" name="code019d9f11498d70989b3ecf6530a93d22" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
</channel>
</rss>