From Jutta Sauer, "We added a raise window method to GraphicsWindow. And added two

implementations for Win32 and X11.

"
This commit is contained in:
Robert Osfield
2008-08-15 17:32:26 +00:00
parent b6886cdbb2
commit dceb3cbe88
5 changed files with 52 additions and 2 deletions

View File

@@ -2374,3 +2374,13 @@ extern "C" void graphicswindow_Win32(void)
{
osg::GraphicsContext::setWindowingSystemInterface(osgViewer::Win32WindowingSystem::getInterface());
}
void GraphicsWindowWin32::raiseWindow()
{
SetWindowPos(_hwnd, HWND_TOPMOST, _traits->x, _traits->y, _traits->width, _traits->height, SWP_NOMOVE|SWP_NOSIZE);
SetWindowPos(_hwnd, HWND_NOTOPMOST, _traits->x, _traits->y, _traits->width, _traits->height, SWP_NOMOVE|SWP_NOSIZE);
}