Author: gschneider
Date: Fri May 6 18:00:41 2011
New Revision: 51611
URL:
http://svn.reactos.org/svn/reactos?rev=51611&view=rev
Log:
[paint] Implement cut function
See issue #6224 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:00:41
2011
@@ -793,6 +793,12 @@
EmptyClipboard();
SetClipboardData(CF_BITMAP, CopyImage(hSelBm, IMAGE_BITMAP, 0, 0,
LR_COPYRETURNORG));
CloseClipboard();
+ break;
+ case IDM_EDITCUT:
+ /* Copy */
+ SendMessage(hwnd, WM_COMMAND, IDM_EDITCOPY, 0);
+ /* Delete selection */
+ SendMessage(hwnd, WM_COMMAND, IDM_EDITDELETESELECTION, 0);
break;
case IDM_EDITPASTE:
OpenClipboard(hMainWnd);