Giter Site home page Giter Site logo

borderlesswindow's Introduction

BorderlessWindow

This sample application demonstrates the necessary WinAPI calls and window messages to handle to produce a resizable, borderless window (similar to Steam, GitHub for Windows).

sample

The borderless window can be resized, moved, and also supports all the Aero features a regular window has:

  • snapping to desktop halves/quadrants
  • shake to minimize all other windows
  • animations when minimizing, maximizing, restoring, snapping
  • native soft shadow around the window

The sample should work on Windows 7, 8/8.1 and 10.

What this example does not do:

  • Draw anything to the client area. You will need to fill the entire window with an opaque color, or the window frame may be visible inside your client area in borderless mode. In my use case I simply fill the D3D backbuffer covering the window's client area.
  • Calculate proper client/window size in windowed mode. You will need to use AdjustWindowRect and friends to calculate the correct window size for a desired client area size.

Keybinds:

  • F8 enables/disables dragging in the borderless window to move it
  • F9 enables/disables resizing the borderless window
  • F10 toggles between borderless and windowed mode
  • F11 toggles the aero shadow when in borderless mode

borderlesswindow's People

Contributors

melak47 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.