win32-window-custom-titlebar
win32-window-custom-titlebar copied to clipboard
Update article for Windows 11
Hi, excelent article with a historical background.
It's funny but Windows 11 changes rendering once again. The DWM now renders the border on top. This change is backwards compatible, because developers drew fake OPAQUE border, but now DWM clips client area (discarding 1px on top) and draws its own TRANSLUCENT border.
DWMWA_VISIBLE_FRAME_BORDER_THICKNESSUse with DwmGetWindowAttribute. Retrieves the width of the outer border that the DWM would draw around this window. The value can vary depending on the DPI of the window. The pvAttribute parameter points to a value of type UINT. This value is supported starting with Windows 11 Build 22000.
From my observation iBorderWidth from SPI_GETNONCLIENTMETRICS returns the same value.