mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Send WM_NCPAINT and WM_ERASEBKGND messages when making a window visible
svn path=/trunk/; revision=4722
This commit is contained in:
parent
15073977b6
commit
94571478d5
1 changed files with 8 additions and 5 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: winpos.c,v 1.10 2003/05/18 17:16:17 ea Exp $
|
/* $Id: winpos.c,v 1.11 2003/05/18 22:09:08 gvg Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -386,9 +386,11 @@ WinPosDoWinPosChanging(PWINDOW_OBJECT WindowObject,
|
||||||
WindowRect->top = WinPos->y;
|
WindowRect->top = WinPos->y;
|
||||||
WindowRect->right += WinPos->x - WindowObject->WindowRect.left;
|
WindowRect->right += WinPos->x - WindowObject->WindowRect.left;
|
||||||
WindowRect->bottom += WinPos->y - WindowObject->WindowRect.top;
|
WindowRect->bottom += WinPos->y - WindowObject->WindowRect.top;
|
||||||
|
}
|
||||||
|
|
||||||
W32kOffsetRect(ClientRect, WinPos->x - WindowObject->WindowRect.left,
|
if (!(WinPos->flags & SWP_NOSIZE) || !(WinPos->flags & SWP_NOMOVE))
|
||||||
WinPos->y - WindowObject->WindowRect.top);
|
{
|
||||||
|
WinPosGetNonClientSize(WindowObject->Self, WindowRect, ClientRect);
|
||||||
}
|
}
|
||||||
|
|
||||||
WinPos->flags |= SWP_NOCLIENTMOVE | SWP_NOCLIENTSIZE;
|
WinPos->flags |= SWP_NOCLIENTMOVE | SWP_NOCLIENTSIZE;
|
||||||
|
@ -546,14 +548,15 @@ WinPosSetWindowPos(HWND Wnd, HWND WndInsertAfter, INT x, INT y, INT cx,
|
||||||
PaintRedrawWindow(Window->Self, NULL,
|
PaintRedrawWindow(Window->Self, NULL,
|
||||||
(VisRgn == (HRGN) 1) ? 0 : VisRgn,
|
(VisRgn == (HRGN) 1) ? 0 : VisRgn,
|
||||||
RDW_ERASE | RDW_FRAME | RDW_INVALIDATE |
|
RDW_ERASE | RDW_FRAME | RDW_INVALIDATE |
|
||||||
RDW_ALLCHILDREN,
|
RDW_ALLCHILDREN | RDW_ERASENOW,
|
||||||
RDW_EX_XYWINDOW | RDW_EX_USEHRGN);
|
RDW_EX_XYWINDOW | RDW_EX_USEHRGN);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PaintRedrawWindow(Window->Self, NULL,
|
PaintRedrawWindow(Window->Self, NULL,
|
||||||
(VisRgn == (HRGN) 1) ? 0 : VisRgn,
|
(VisRgn == (HRGN) 1) ? 0 : VisRgn,
|
||||||
RDW_ERASE | RDW_INVALIDATE | RDW_ALLCHILDREN,
|
RDW_ERASE | RDW_INVALIDATE | RDW_ALLCHILDREN |
|
||||||
|
RDW_ERASENOW,
|
||||||
RDW_EX_USEHRGN);
|
RDW_EX_USEHRGN);
|
||||||
}
|
}
|
||||||
/* FIXME: Redraw the window parent. */
|
/* FIXME: Redraw the window parent. */
|
||||||
|
|
Loading…
Reference in a new issue