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/nt…
==============================================================================
--- 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,