mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 17:06:29 +00:00
[MSPAINT]
- Select selection tool after pasting from clipboard svn path=/trunk/; revision=52456
This commit is contained in:
parent
fa74282a41
commit
4504d4c686
|
@ -807,6 +807,10 @@ WindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
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)));
|
||||
|
|
Loading…
Reference in a new issue