mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:32:59 +00:00
unmark dirty windows on destruction so no painting messages get generated afterwards
svn path=/trunk/; revision=12068
This commit is contained in:
parent
ed10a7b01f
commit
29be8a4058
1 changed files with 13 additions and 2 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: window.c,v 1.255 2004/12/12 23:08:11 navaraf Exp $
|
/* $Id: window.c,v 1.256 2004/12/12 23:42:35 weiden Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -264,7 +264,7 @@ static LRESULT IntDestroyWindow(PWINDOW_OBJECT Window,
|
||||||
HWND *ChildHandle;
|
HWND *ChildHandle;
|
||||||
PWINDOW_OBJECT Child;
|
PWINDOW_OBJECT Child;
|
||||||
PMENU_OBJECT Menu;
|
PMENU_OBJECT Menu;
|
||||||
BOOL BelongsToThreadData;
|
BOOLEAN BelongsToThreadData;
|
||||||
|
|
||||||
ASSERT(Window);
|
ASSERT(Window);
|
||||||
|
|
||||||
|
@ -285,6 +285,17 @@ static LRESULT IntDestroyWindow(PWINDOW_OBJECT Window,
|
||||||
RemoveEntryList(&Window->ThreadListEntry);
|
RemoveEntryList(&Window->ThreadListEntry);
|
||||||
IntUnLockThreadWindows(Window->OwnerThread->Tcb.Win32Thread);
|
IntUnLockThreadWindows(Window->OwnerThread->Tcb.Win32Thread);
|
||||||
|
|
||||||
|
if (Window->UpdateRegion != NULL ||
|
||||||
|
Window->Flags & WINDOWOBJECT_NEED_INTERNALPAINT)
|
||||||
|
{
|
||||||
|
MsqDecPaintCountQueue(Window->MessageQueue);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Window->Flags & WINDOWOBJECT_NEED_NCPAINT)
|
||||||
|
{
|
||||||
|
MsqDecPaintCountQueue(Window->MessageQueue);
|
||||||
|
}
|
||||||
|
|
||||||
BelongsToThreadData = IntWndBelongsToThread(Window, ThreadData);
|
BelongsToThreadData = IntWndBelongsToThread(Window, ThreadData);
|
||||||
|
|
||||||
if(SendMessages)
|
if(SendMessages)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue