mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 18:35:32 +00:00
Fixed control apps windows, Let me known if it create any regress.
svn path=/trunk/; revision=24430
This commit is contained in:
parent
41c8741041
commit
2db2156bb3
|
@ -1221,7 +1221,7 @@ co_WinPosSetWindowPos(
|
|||
}
|
||||
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_WinPosSetWindowPos(
|
|||
co_UserRedrawWindow(Window->Parent, NULL, DirtyRgn,
|
||||
RDW_ERASE | RDW_FRAME | RDW_INVALIDATE | RDW_ALLCHILDREN);
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
NtGdiOffsetRgn(DirtyRgn,
|
||||
Window->WindowRect.left - Window->ClientRect.left,
|
||||
|
|
Loading…
Reference in a new issue