# How to change the height of the title bar (Windows)

**URL:** <https://discourse.glfw.org/t/how-to-change-the-height-of-the-title-bar-windows/2532>\
**Category:** support\
**Created:** [January 14, 2024, 8:20pm UTC](https://discourse.glfw.org/t/how-to-change-the-height-of-the-title-bar-windows/2532 "2024-01-14T20:20:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mesidex](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/mesidex/32/860_2.png) [@Mesidex](https://discourse.glfw.org/u/Mesidex)\
**Post date:** [January 14, 2024, 8:20pm UTC](https://discourse.glfw.org/t/how-to-change-the-height-of-the-title-bar-windows/2532/1 "2024-01-14T20:20:20Z")

</div>

Comparing the legacy notepad application (or a default GLFW one) with Windows Terminal, it can be noted that the height of the title bar is larger than the other. How were they able to achieve this? It is also apparent on other applications like Microsoft Edge and Figma.

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/4496fd0c71cc842eb7f4d695b793a173cb63c4a0.png)

---

<div class="post-metadata">

**Author:** ![ws909](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/ws909/32/714_2.png) [@ws909](https://discourse.glfw.org/u/ws909)\
**Post date:** [January 14, 2024, 11:35pm UTC](https://discourse.glfw.org/t/how-to-change-the-height-of-the-title-bar-windows/2532/2 "2024-01-14T23:35:49Z")

</div>

They are probably custom drawing the entire titlebar. I see that’s on Windows 11, so I have no idea if MS has finally gotten around to build an actual API for that thing, but what’s been common previously, is to just simply custom draw the entire titlebar, mimicking the elements in original one. That’s why some applications’ window buttons kinda look off, sometimes. Contrast this with Cocoa, where a lot of this stuff is much easier, as you can control the titlebar much more there.

---

<div class="post-metadata">

**Author:** ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)\
**Post date:** [January 15, 2024, 10:28am UTC](https://discourse.glfw.org/t/how-to-change-the-height-of-the-title-bar-windows/2532/3 "2024-01-15T10:28:38Z")

</div>

[Windows Terminal does indeed paint it’s own title bar](https://github.com/microsoft/terminal/blob/a4445ed4cca72c6a0a8dfec604f6e6cc75458d9d/src/cascadia/WindowsTerminal/NonClientIslandWindow.h#L12) as described in the [Custom Window Frame Using DWM documentation](https://learn.microsoft.com/en-us/windows/win32/dwm/customframe).

This isn’t yet available in GLFW, though it might be able to be hacked on top using the [GLFW Native Access API](https://www.glfw.org/docs/3.3/group__native.html).

There are a few custom versions of GLFW which have altered undecorated windows in GLFW which might make it easy to add this functionality, for example see [this post](https://discourse.glfw.org/t/windows-11-animations-not-working-when-glfw-decorated-is-false/2456/3).
