mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 22:55:41 +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
|
||||
* 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
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -264,7 +264,7 @@ static LRESULT IntDestroyWindow(PWINDOW_OBJECT Window,
|
|||
HWND *ChildHandle;
|
||||
PWINDOW_OBJECT Child;
|
||||
PMENU_OBJECT Menu;
|
||||
BOOL BelongsToThreadData;
|
||||
BOOLEAN BelongsToThreadData;
|
||||
|
||||
ASSERT(Window);
|
||||
|
||||
|
@ -284,6 +284,17 @@ static LRESULT IntDestroyWindow(PWINDOW_OBJECT Window,
|
|||
in IntDestroyWindow() */
|
||||
RemoveEntryList(&Window->ThreadListEntry);
|
||||
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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue