Added setWindowRectangle implementation for GraphicsWindowWin32, and

place holder for setWindowRectangle implementation for GraphicsWindowCarbon.
This commit is contained in:
Robert Osfield
2007-04-13 14:23:10 +00:00
parent 3deda9f2a7
commit 934ed30314
4 changed files with 19 additions and 0 deletions

View File

@@ -1708,6 +1708,14 @@ void GraphicsWindowWin32::requestWarpPointer( float x, float y )
getEventQueue()->mouseWarped(x,y);
}
void GraphicsWindowWin32::setWindowRectangle(int x, int y, int width, int height)
{
if (!::SetWindowPos(_hwnd, HWND_TOP, x, y, width, height, SWP_SHOWWINDOW | SWP_FRAMECHANGED))
{
reportErrorForScreen("GraphicsWindowWin32::setWindowRectangle() - Unable to set new window position and size", _traits->screenNum, ::GetLastError());
}
}
void GraphicsWindowWin32::useCursor( bool cursorOn )
{
_traits->useCursor = cursorOn;