- Fix test for child windows. This is for painting changes. See CORE-7447.

svn path=/trunk/; revision=66540
This commit is contained in:
James Tabor 2015-03-02 06:45:19 +00:00
parent e83e0a084f
commit fcdfd8831e

View file

@ -850,25 +850,25 @@ IntSetMenu(
/* INTERNAL ******************************************************************/
////
// This fixes a check for children messages that need paint while searching the parents messages!
// Fixes wine msg:test_paint_messages:WmParentErasePaint ..
////
BOOL FASTCALL
IntIsChildWindow(PWND Parent, PWND BaseWindow)
{
PWND Window;
Window = BaseWindow;
while (Window && ((Window->style & (WS_POPUP|WS_CHILD)) == WS_CHILD))
PWND Window = BaseWindow;
do
{
if (Window == Parent)
{
return(TRUE);
}
if ( Window == NULL || (Window->style & (WS_POPUP|WS_CHILD)) != WS_CHILD )
return FALSE;
Window = Window->spwndParent;
Window = Window->spwndParent;
}
return(FALSE);
while(Parent != Window);
return TRUE;
}
////
/*
Link the window into siblings list