[ros-diffs] [greatlrd] 24430: Fixed control apps windows, Let me known if it create any regress.

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Sat Oct 7 18:37:33 CEST 2006


Author: greatlrd
Date: Sat Oct  7 01:59:42 2006
New Revision: 24430

URL: http://svn.reactos.org/svn/reactos?rev=24430&view=rev
Log:
Fixed control apps windows, Let me known if it create any regress. 

Modified:
    trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c?rev=24430&r1=24429&r2=24430&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c Sat Oct  7 01:59:42 2006
@@ -1221,7 +1221,7 @@
          }
          if (RgnType != ERROR && RgnType != NULLREGION)
          {
-            if (Window->Parent)
+            if ((Window->Parent == UserGetDesktopWindow()) && (Window->Style & WS_VISIBLE))
             {
                NtGdiOffsetRgn(DirtyRgn,
                   Window->WindowRect.left - Window->Parent->ClientRect.left,
@@ -1229,7 +1229,7 @@
                co_UserRedrawWindow(Window->Parent, NULL, DirtyRgn,
                   RDW_ERASE | RDW_FRAME | RDW_INVALIDATE | RDW_ALLCHILDREN);
             }
-            else
+            else 
             {
                NtGdiOffsetRgn(DirtyRgn,
                   Window->WindowRect.left - Window->ClientRect.left,




More information about the Ros-diffs mailing list