back/win32: When ordering out a window, use the SWP_NOACTIVATE flag on SetWindowPos

so Windows doesn't activate/deactivate any windows when hiding a window.
  
This fixes the bug where when a tooltip disappeared, it would deactivate
the window the tooltip was over.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31024 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ericwa 2010-07-25 07:35:42 +00:00
parent 6d63cb202e
commit 23e8b5aadc
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,12 @@
2010-07-06 Eric Wasylishen <ewasylishen@gmail.com>
* Source/win32/WIN32Server.m:
When ordering out a window, use the SWP_NOACTIVATE flag on SetWindowPos
so Windows doesn't activate/deactivate any windows when hiding a window.
This fixes the bug where when a tooltip disappeared, it would deactivate
the window the tooltip was over.
2010-07-06 Eric Wasylishen <ewasylishen@gmail.com>
* Source/win32/WIN32Server.m:

View file

@ -1046,7 +1046,7 @@ LRESULT CALLBACK MainWndProc(HWND hwnd, UINT uMsg,
{
SetWindowLong((HWND)winNum, OFF_ORDERED, 0);
SetWindowPos((HWND)winNum, NULL, 0, 0, 0, 0,
SWP_HIDEWINDOW | SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER);
SWP_HIDEWINDOW | SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE);
return;
}