Bastitron/Win32Chrome ? reverse-engineered prompt

Reverse engineered prompt

Build me a small Windows only C++20 library that makes it easy to use a fully custom title bar on borderless apps, but still keeps the normal Windows behavior like dragging, snapping, and the minimize, maximize, and close buttons working properly.

I want it to plug into a Win32 window by subclassing the window message handling, so my app can draw its own title bar in whatever UI I want, especially with GLFW and Dear ImGui. Please make it simple to drop into an existing project with CMake, and include a working example that shows how to wire up the window bounds for the title bar and the control buttons.

The main goal is to keep the app looking modern and custom while still feeling native on Windows. If you need to check current GLFW or ImGui docs online, go ahead and do that.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab