mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[NtUser]
- Fix test for child windows. This is for painting changes. See CORE-7447. svn path=/trunk/; revision=66540
This commit is contained in:
parent
e83e0a084f
commit
fcdfd8831e
1 changed files with 12 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue