BorderlessWindow
basic win32 example of a borderless window (with aero shadows)
Install / Use
/learn @melak47/BorderlessWindowREADME
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).

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
Related Skills
node-connect
351.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
