mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 17:01:28 +00:00
[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:
parent
ac4e2c2ab4
commit
acf317b8b8
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue