mirror of
https://github.com/glfw/glfw.git
synced 2025-10-05 06:06:36 +00:00
Support for resize operation on Windows
The function ```glfwResizeWindow``` now supports the Windows platform.
This commit is contained in:
parent
6451897a98
commit
f7d8de651b
@ -1325,6 +1325,35 @@ void _glfwPlatformFocusWindow(_GLFWwindow* window)
|
|||||||
|
|
||||||
void _glfwPlatformResizeWindow(_GLFWwindow* window, int border)
|
void _glfwPlatformResizeWindow(_GLFWwindow* window, int border)
|
||||||
{
|
{
|
||||||
|
WPARAM wBorder;
|
||||||
|
switch (border)
|
||||||
|
{
|
||||||
|
case GLFW_WINDOW_LEFT:
|
||||||
|
wBorder = HTLEFT;
|
||||||
|
break;
|
||||||
|
case GLFW_WINDOW_TOP:
|
||||||
|
wBorder = HTTOP;
|
||||||
|
break;
|
||||||
|
case GLFW_WINDOW_RIGHT:
|
||||||
|
wBorder = HTRIGHT;
|
||||||
|
break;
|
||||||
|
case GLFW_WINDOW_BOTTOM:
|
||||||
|
wBorder = HTBOTTOM;
|
||||||
|
break;
|
||||||
|
case GLFW_WINDOW_TOPLEFT:
|
||||||
|
wBorder = HTTOPLEFT;
|
||||||
|
break;
|
||||||
|
case GLFW_WINDOW_TOPRIGHT:
|
||||||
|
wBorder = HTTOPRIGHT;
|
||||||
|
break;
|
||||||
|
case GLFW_WINDOW_BOTTOMLEFT:
|
||||||
|
wBorder = HTBOTTOMLEFT;
|
||||||
|
break;
|
||||||
|
case GLFW_WINDOW_BOTTOMRIGHT:
|
||||||
|
wBorder = HTBOTTOMRIGHT;
|
||||||
|
}
|
||||||
|
ReleaseCapture();
|
||||||
|
SendMessage(window->win32.handle, WM_NCLBUTTONDOWN, wBorder, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _glfwPlatformSetWindowMonitor(_GLFWwindow* window,
|
void _glfwPlatformSetWindowMonitor(_GLFWwindow* window,
|
||||||
|
Loading…
Reference in New Issue
Block a user