Add implementation of glfwDragWindow for Windows

The last parameter of ```SendMessage``` is set to 0, but possibly should
be the cursor coordinates. Tests are required to know if it is the
position of the cursor relative to the screen or to the specified
window.
This commit is contained in:
Felipe Ferreira da Silva 2017-04-06 11:11:30 -03:00
parent b9d2ea9fa6
commit 126e9a7b70
2 changed files with 10 additions and 0 deletions

View File

@ -184,6 +184,10 @@ void _glfwPlatformFocusWindow(_GLFWwindow* window)
{
}
void _glfwPlatformDragWindow(_GLFWwindow* window)
{
}
int _glfwPlatformWindowFocused(_GLFWwindow* window)
{
return GLFW_FALSE;

View File

@ -1323,6 +1323,12 @@ void _glfwPlatformFocusWindow(_GLFWwindow* window)
SetFocus(window->win32.handle);
}
void _glfwPlatformDragWindow(_GLFWwindow* window)
{
ReleaseCapture();
SendMessage(window->win32.handle, WM_NCLBUTTONDOWN, HTCAPTION, 0);
}
void _glfwPlatformSetWindowMonitor(_GLFWwindow* window,
_GLFWmonitor* monitor,
int xpos, int ypos,