Author: gschneider
Date: Fri May 6 18:32:45 2011
New Revision: 51612
URL:
http://svn.reactos.org/svn/reactos?rev=51612&view=rev
Log:
[paint] Hide selection window and clear undo history when starting a new painting
See issue #6226 for more details.
Modified:
trunk/reactos/base/applications/mspaint/winproc.c
Modified: trunk/reactos/base/applications/mspaint/winproc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/…
==============================================================================
--- trunk/reactos/base/applications/mspaint/winproc.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint/winproc.c [iso-8859-1] Fri May 6 18:32:45
2011
@@ -721,6 +721,9 @@
SendMessage(hwnd, WM_CLOSE, wParam, lParam);
break;
case IDM_FILENEW:
+ ShowWindow(hSelection, SW_HIDE);
+ clearHistory();
+
Rectangle(hDrawingDC, 0 - 1, 0 - 1, imgXRes + 1, imgYRes + 1);
SendMessage(hImageArea, WM_PAINT, 0, 0);
break;