Author: jimtabor Date: Mon Mar 2 06:45:19 2015 New Revision: 66540
URL: http://svn.reactos.org/svn/reactos?rev=66540&view=rev Log: [NtUser] - Fix test for child windows. This is for painting changes. See CORE-7447.
Modified: trunk/reactos/win32ss/user/ntuser/window.c
Modified: trunk/reactos/win32ss/user/ntuser/window.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/window.... ============================================================================== --- trunk/reactos/win32ss/user/ntuser/window.c [iso-8859-1] (original) +++ trunk/reactos/win32ss/user/ntuser/window.c [iso-8859-1] Mon Mar 2 06:45:19 2015 @@ -850,25 +850,25 @@
/* 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)) - { - if (Window == Parent) - { - return(TRUE); - } - - Window = Window->spwndParent; - } - - return(FALSE); -} + PWND Window = BaseWindow; + do + { + if ( Window == NULL || (Window->style & (WS_POPUP|WS_CHILD)) != WS_CHILD ) + return FALSE; + + Window = Window->spwndParent; + } + while(Parent != Window); + return TRUE; +} +////
/* Link the window into siblings list