Author: rharabien
Date: Sat Jun 25 14:42:24 2011
New Revision: 52456
URL:
http://svn.reactos.org/svn/reactos?rev=52456&view=rev
Log:
[MSPAINT]
- Select selection tool after pasting from clipboard
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] Sat Jun 25 14:42:24
2011
@@ -807,6 +807,10 @@
OpenClipboard(hMainWnd);
if (GetClipboardData(CF_BITMAP) != NULL)
{
+ HWND hToolbar = FindWindowEx(hToolBoxContainer, NULL,
TOOLBARCLASSNAME, NULL);
+ SendMessage(hToolbar, TB_CHECKBUTTON, ID_RECTSEL, MAKELONG(TRUE,
0));
+ SendMessage(hwnd, WM_COMMAND, ID_RECTSEL, 0);
+
DeleteObject(SelectObject(hSelDC, hSelBm =
CopyImage(GetClipboardData(CF_BITMAP),
IMAGE_BITMAP, 0, 0,
LR_COPYRETURNORG)));