mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 12:40:33 +00:00
- SetParent shouldn't destroy menus.
- UserGetAncestor(Window, GA_ROOT) really shouldn't return NULL, in any case. svn path=/trunk/; revision=17946
This commit is contained in:
parent
0bec9aee61
commit
27f30a175b
1 changed files with 0 additions and 15 deletions
|
@ -878,7 +878,6 @@ co_IntSetParent(PWINDOW_OBJECT Wnd, PWINDOW_OBJECT WndNewParent)
|
|||
PWINDOW_OBJECT WndOldParent, Sibling, InsertAfter;
|
||||
// HWND hWnd, hWndNewParent;
|
||||
BOOL WasVisible;
|
||||
BOOL MenuChanged;
|
||||
|
||||
ASSERT(Wnd);
|
||||
ASSERT(WndNewParent);
|
||||
|
@ -930,15 +929,6 @@ co_IntSetParent(PWINDOW_OBJECT Wnd, PWINDOW_OBJECT WndNewParent)
|
|||
IntLinkWindow(Wnd, WndNewParent, InsertAfter /*prev sibling*/);
|
||||
// UserDerefObject(InsertAfter);
|
||||
}
|
||||
|
||||
if (WndNewParent->hSelf != IntGetDesktopWindow()) /* a child window */
|
||||
{
|
||||
if (!(Wnd->Style & WS_CHILD))
|
||||
{
|
||||
//if ( Wnd->Menu ) DestroyMenu ( Wnd->menu );
|
||||
IntSetMenu(Wnd, NULL, &MenuChanged);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -2553,11 +2543,6 @@ PWINDOW_OBJECT FASTCALL UserGetAncestor(PWINDOW_OBJECT Wnd, UINT Type)
|
|||
{
|
||||
PWINDOW_OBJECT WndAncestor, Parent;
|
||||
|
||||
if (Wnd->hSelf == IntGetDesktopWindow())
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
switch (Type)
|
||||
{
|
||||
case GA_PARENT:
|
||||
|
|
Loading…
Reference in a new issue