Author: jimtabor
Date: Sun Mar 2 22:39:02 2014
New Revision: 62404
URL:
http://svn.reactos.org/svn/reactos?rev=62404&view=rev
Log:
- Code cleanup and update. Change trace to error for tracking.
Modified:
trunk/reactos/win32ss/user/ntuser/winpos.c
Modified: trunk/reactos/win32ss/user/ntuser/winpos.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/winpos…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/winpos.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/winpos.c [iso-8859-1] Sun Mar 2 22:39:02 2014
@@ -1381,7 +1381,7 @@
*
* FIXME: hide/show owned popups when owner visibility changes.
*
- * ReactOS: See bug 6751 and 7228.
+ * ReactOS: See bug CORE-6129 and CORE-6554.
*
*/
////
@@ -1450,7 +1450,7 @@
if (hWndInsertAfter == HWND_BOTTOM)
{
- TRACE("Window is HWND_BOTTOM\n");
+ ERR("Window is HWND_BOTTOM\n");
if (List) ExFreePoolWithTag(List, USERTAG_WINDOWLIST);
goto done;
}
@@ -1721,7 +1721,6 @@
RECTL CopyRect;
PWND Ancestor;
BOOL bPointerInWindow;
- //BOOL bNoTopMost;
ASSERT_REFS_CO(Window);
@@ -1759,9 +1758,6 @@
}
co_WinPosDoWinPosChanging(Window, &WinPos, &NewWindowRect,
&NewClientRect);
-
- // HWND_NOTOPMOST is redirected in WinPosFixupFlags.
- //bNoTopMost = WndInsertAfter == HWND_NOTOPMOST;
/* Does the window still exist? */
if (!IntIsWindow(WinPos.hwnd))
@@ -1823,70 +1819,6 @@
if (!(WinPos.flags & SWP_NOZORDER) && WinPos.hwnd !=
UserGetShellWindow())
{
IntLinkHwnd(Window, WinPos.hwndInsertAfter);
-#if 0
- //// Fix bug 6751 & 7228 see WinPosDoOwnedPopups wine Fixme.
- PWND ParentWindow;
- PWND Sibling;
- PWND InsertAfterWindow;
-
- if ((ParentWindow = Window->spwndParent)) // Must have a Parent window!
- {
- //ERR("SetWindowPos has parent window.\n");
- if (WinPos.hwndInsertAfter == HWND_TOPMOST)
- {
- InsertAfterWindow = NULL;
- }
- else if ( WinPos.hwndInsertAfter == HWND_TOP )
- {
- InsertAfterWindow = NULL;
-
- Sibling = ParentWindow->spwndChild;
-
- while ( Sibling && Sibling->ExStyle & WS_EX_TOPMOST )
- {
- InsertAfterWindow = Sibling;
- Sibling = Sibling->spwndNext;
- }
- }
- else if (WinPos.hwndInsertAfter == HWND_BOTTOM)
- {
- if (ParentWindow->spwndChild)
- {
- InsertAfterWindow = ParentWindow->spwndChild;
-
- if(InsertAfterWindow)
- {
- while (InsertAfterWindow->spwndNext)
- InsertAfterWindow = InsertAfterWindow->spwndNext;
- }
- }
- else
- InsertAfterWindow = NULL;
- }
- else
- InsertAfterWindow = IntGetWindowObject(WinPos.hwndInsertAfter);
- /* Do nothing if hwndInsertAfter is HWND_BOTTOM and Window is already
- the last window */
- if (InsertAfterWindow != Window)
- {
- IntUnlinkWindow(Window);
- IntLinkWindow(Window, InsertAfterWindow);
- }
-
- if ( ( WinPos.hwndInsertAfter == HWND_TOPMOST ||
- ( Window->ExStyle & WS_EX_TOPMOST && Window->spwndPrev
&& Window->spwndPrev->ExStyle & WS_EX_TOPMOST ) ||
- ( Window->spwndNext && Window->spwndNext->ExStyle &
WS_EX_TOPMOST ) ) &&
- !bNoTopMost )
- {
- Window->ExStyle |= WS_EX_TOPMOST;
- }
- else
- {
- Window->ExStyle &= ~ WS_EX_TOPMOST;
- }
- }
- ////
-#endif
}
OldWindowRect = Window->rcWindow;