* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: window.c,v 1.124 2003/10/29 08:49:56 navaraf Exp $
+/* $Id: window.c,v 1.125 2003/10/29 10:04:55 navaraf Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
WindowObject->Height = Height;
WindowObject->ParentHandle = NULL;
WindowObject->Parent = NULL;
+ WindowObject->hWndOwner = NULL;
WindowObject->IDMenu = 0;
WindowObject->Instance = NULL;
WindowObject->Parameters = NULL;
)
{
Wnd->Parent = WndParent;
+ Wnd->ParentHandle = WndParent->Self;
if ((Wnd->PrevSibling = WndPrevSibling))
{
}
break;
case GW_OWNER:
- if (Wnd->Parent)
- {
- hWndResult = Wnd->hWndOwner;
- }
+ hWndResult = Wnd->hWndOwner;
break;
case GW_CHILD:
if (Wnd->FirstChild)
case GWL_HWNDPARENT:
if (WindowObject->ParentHandle == IntGetDesktopWindow())
{
- Result = (LONG) WindowObject->hWndOwner;
+ Result = (LONG) NtUserGetWindow(WindowObject->Self, GW_OWNER);
+ /*WindowObject->hWndOwner*/
}
else
{
- Result = (LONG) WindowObject->ParentHandle;
+ Result = (LONG) NtUserGetAncestor(WindowObject->Self, GA_PARENT);
+ /*WindowObject->ParentHandle*/
}
break;
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: winpos.c,v 1.38 2003/10/28 13:43:56 navaraf Exp $
+/* $Id: winpos.c,v 1.39 2003/10/29 10:04:55 navaraf Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
return TRUE;
}
+/*
+ * Fix Z order taking into account owned popups -
+ * basically we need to maintain them above the window that owns them
+ */
+HWND FASTCALL
+WinPosDoOwnedPopups(HWND hWnd, HWND hWndInsertAfter)
+{
+ /* FIXME */
+ return hWndInsertAfter;
+}
+
/***********************************************************************
* WinPosInternalMoveWindow
*
NtUserGetAncestor(WinPos.hwnd, GA_PARENT) ==
PsGetWin32Thread()->Desktop->DesktopWindow)
{
-/* FIXME */
-/* WinPos.hwndInsertAfter = WinPosDoOwnedPopups(WinPos.hwnd, WinPos.hwndInsertAfter);*/
+ WinPos.hwndInsertAfter = WinPosDoOwnedPopups(WinPos.hwnd, WinPos.hwndInsertAfter);
}
/* FIXME: Adjust flags based on WndInsertAfter */