diff --git a/src/win32_window.c b/src/win32_window.c index a23b1419..bfca2311 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -36,6 +36,7 @@ #include #include #include +#include // Returns the window style for the specified window // @@ -1539,7 +1540,10 @@ void _glfwSetWindowTitleWin32(_GLFWwindow* window, const char* title) _glfw_free(wideTitle); } void _glfwSetWindowTitlebarColorWin32(GLFWwindow* window, int r, int g, int b, int a) { - + COLORREF color = RGB(r, g, b); + BOOL SET_CAPTION_COLOR = SUCCEEDED(DwmSetWindowAttribute( + window->win32.handle, DWMWINDOWATTRIBUTE::DWMWA_CAPTION_COLOR, + &color, sizeof(color))); } void _glfwSetWindowIconWin32(_GLFWwindow* window, int count, const GLFWimage* images) {