mirror of
https://github.com/glfw/glfw.git
synced 2025-06-07 08:14:57 +00:00
fix
This commit is contained in:
parent
12e32bc6aa
commit
0ea94ce3b1
@ -36,6 +36,7 @@
|
||||
#include <string.h>
|
||||
#include <windowsx.h>
|
||||
#include <shellapi.h>
|
||||
#include <dwmapi.h>
|
||||
|
||||
// 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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user