All Projects → rossy → Borderless Window

rossy / Borderless Window

A minimal borderless window with the Windows API

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Borderless Window

Geodata Br
Free open public domain geographic data of Brazil available in multiple languages and formats.
Stars: ✭ 57 (-56.49%)
Mutual labels:  public-domain
Cairoshell
Cairo is a customizable, intuitive desktop environment for Windows.
Stars: ✭ 1,307 (+897.71%)
Mutual labels:  windows-desktop
Miniaudio
Single file audio playback and capture library written in C.
Stars: ✭ 1,889 (+1341.98%)
Mutual labels:  public-domain
Rboxlo
Roblox private server
Stars: ✭ 69 (-47.33%)
Mutual labels:  public-domain
Atm Cli
Command line tool for generating and working with MIDI files.
Stars: ✭ 1,235 (+842.75%)
Mutual labels:  public-domain
Flask Rest Template
template for a rest app with flask, flask-rest and more...
Stars: ✭ 95 (-27.48%)
Mutual labels:  public-domain
Minischeme
Cat's Eye Technologies' fork of the original public-domain Mini-Scheme implementation, miniscm.
Stars: ✭ 43 (-67.18%)
Mutual labels:  public-domain
Rocket
rocket - Fast single header signal/slots library for C++
Stars: ✭ 124 (-5.34%)
Mutual labels:  public-domain
The Debuginator
A juicy feature-packed debug menu intended for games.
Stars: ✭ 91 (-30.53%)
Mutual labels:  public-domain
Vkbind
Single file Vulkan API loader.
Stars: ✭ 110 (-16.03%)
Mutual labels:  public-domain
Stdpack.c
Collection of small public domain de/compressors in plain C.
Stars: ✭ 73 (-44.27%)
Mutual labels:  public-domain
Renative
🚀🚀🚀Build universal cross-platform apps with React Native. Includes latest iOS, tvOS, Android, Android TV, Android Wear, Web, Tizen TV, Tizen Watch, Tizen Mobile, LG webOS, macOS/OSX, Windows, KaiOS, FirefoxOS Firefox TV platforms
Stars: ✭ 1,199 (+815.27%)
Mutual labels:  windows-desktop
Ontopreplica
A real-time always-on-top “replica” of a window of your choice (on Windows).
Stars: ✭ 1,336 (+919.85%)
Mutual labels:  windows-desktop
Script Reset Windows Update Tool
This script reset the Windows Update Components.
Stars: ✭ 68 (-48.09%)
Mutual labels:  windows-desktop
Novels.org
Novels.org - Your Novels in Plain Text (Emacs . org-mode)
Stars: ✭ 120 (-8.4%)
Mutual labels:  public-domain
Templeos
Talk to God on up to 64 cores. Final snapshot of the Third Temple.
Stars: ✭ 1,089 (+731.3%)
Mutual labels:  public-domain
Dockpanelsuite
DockPanel Suite - The Visual Studio inspired docking library for .NET WinForms
Stars: ✭ 1,326 (+912.21%)
Mutual labels:  windows-desktop
Tzupdate
Set the system timezone based on IP geolocation
Stars: ✭ 130 (-0.76%)
Mutual labels:  public-domain
Snippets
(Hopefully) useful code snippets and header-only libs
Stars: ✭ 123 (-6.11%)
Mutual labels:  public-domain
Swarmz
A free, header-only C++ swarming (flocking) library for real-time applications
Stars: ✭ 108 (-17.56%)
Mutual labels:  public-domain

borderless-window

Many Windows applications choose to remove the system window borders on their main window. The naive way of doing this is to create a popup window (with the WS_POPUP style) instead of an overlapped window, however popup windows are more suited to things like splash screens and other overlays, not main application windows. They lack a number of useful behaviours such as window snapping and the window menu, so they can be frustrating for users who expect these behaviours.

The proper way to create a borderless application window is to create a regular overlapped window and remove the borders by expanding the client area. This is what Office, Visual Studio, iTunes and UWP CoreWindows do, however doing this exposes some quirks in the windowing system that must be worked around in each application.

borderless-window is a minimal demonstration of how to work around these quirks. It creates a window that:

  • Works with window snapping, including double-click to snap vertically
  • Works with Aero Flip 3D
  • Obeys the "minimize all" command (Win+M)
  • Obeys the cascade and tile commands
  • Shows a window menu when Alt+Space is pressed
  • Does not cover the taskbar when maximized
  • Does not disable auto-hide taskbars when maximized
  • Casts a drop-shadow, like other top-level windows
  • Has hide, show, maximize, minimize and restore animations, like other top-level windows
  • Can be resized by the user
  • Does not accumulate visual corruption in the client area from the hidden window borders when the window is activated, the window text is changed or the window menu is opened

Building

A Makefile is included for mingw-w64 GCC. The C source should also compile in Visual Studio 2015 with a recent Windows SDK. The generated binary should be compatible with Windows Vista and up. It will not work unmodified on Windows XP due to the hard dependency on dwmapi.dll.

Copying

This project is a demonstration of something simple that is made unnecessarily difficult by quirks in the Windows API. In order to be as useful as possible to as many application developers as possible, it is placed in the public domain. Attribution would be appreciated, but is not required (after all, this stuff should have been documented by Microsoft.)

To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.

CC0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].