Author: bfreisen
Date: Mon Jun 19 13:02:09 2017
New Revision: 75122
URL:
http://svn.reactos.org/svn/reactos?rev=75122&view=rev
Log:
[MSPAINT]
- clicking the blank dark gray area will now reset the selection -- patch by Katayama
Hirofumi MZ
CORE-13452 #resolve
Modified:
trunk/reactos/base/applications/mspaint/scrollbox.cpp
trunk/reactos/base/applications/mspaint/scrollbox.h
Modified: trunk/reactos/base/applications/mspaint/scrollbox.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/…
==============================================================================
--- trunk/reactos/base/applications/mspaint/scrollbox.cpp [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint/scrollbox.cpp [iso-8859-1] Mon Jun 19 13:02:09
2017
@@ -114,3 +114,10 @@
}
return 0;
}
+
+LRESULT CScrollboxWindow::OnLButtonDown(UINT nMsg, WPARAM wParam, LPARAM lParam,
BOOL& bHandled)
+{
+ selectionWindow.ShowWindow(SW_HIDE);
+ pointSP = 0; // resets the point-buffer of the polygon and bezier functions
+ return 0;
+}
Modified: trunk/reactos/base/applications/mspaint/scrollbox.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/…
==============================================================================
--- trunk/reactos/base/applications/mspaint/scrollbox.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint/scrollbox.h [iso-8859-1] Mon Jun 19 13:02:09
2017
@@ -15,11 +15,13 @@
MESSAGE_HANDLER(WM_SIZE, OnSize)
MESSAGE_HANDLER(WM_HSCROLL, OnHScroll)
MESSAGE_HANDLER(WM_VSCROLL, OnVScroll)
+ MESSAGE_HANDLER(WM_LBUTTONDOWN, OnLButtonDown)
END_MSG_MAP()
LRESULT OnSize(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
LRESULT OnHScroll(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
LRESULT OnVScroll(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
+ LRESULT OnLButtonDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
};
void UpdateScrollbox();