From Brad Christiansen, "The small change I have made (against this morning's trunk) enables subclasses to register and unregister windows via protected methods. I need this access as I have a subclass that handles some of the oddities of mixing a native OpenGL window with Java's windowing system. I doubt there will be much general benefit of the modification but it should also not be harmful in any way to others."

This commit is contained in:
Robert Osfield
2010-06-28 08:24:53 +00:00
parent fec23cb098
commit 9d9a36f6af
2 changed files with 13 additions and 0 deletions

View File

@@ -1334,6 +1334,16 @@ void GraphicsWindowWin32::destroyWindow( bool deleteNativeWindow )
_destroying = false;
}
void GraphicsWindowWin32::registerWindow()
{
Win32WindowingSystem::getInterface()->registerWindow(_hwnd, this);
}
void GraphicsWindowWin32::unregisterWindow()
{
Win32WindowingSystem::getInterface()->unregisterWindow(_hwnd);
}
bool GraphicsWindowWin32::registerWindowProcedure()
{
::SetLastError(0);