[paint] Hide selection window and clear undo history when starting a new painting

See issue #6226 for more details.

svn path=/trunk/; revision=51612
This commit is contained in:
Gregor Schneider 2011-05-06 18:32:45 +00:00
parent ac4e2c2ab4
commit acf317b8b8

View file

@ -721,6 +721,9 @@ WindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
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;