https://git.reactos.org/?p=reactos.git;a=commitdiff;h=34881b9a88951423ee6ae…
commit 34881b9a88951423ee6aeab53f5e15cd3e8f6537
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Thu Mar 16 17:26:27 2023 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Thu Mar 16 17:26:27 2023 +0900
[MSPAINT] Delete needless CToolBox::OnSetCursor
CORE-18867
---
base/applications/mspaint/toolbox.cpp | 6 ------
base/applications/mspaint/toolbox.h | 1 -
2 files changed, 7 deletions(-)
diff --git a/base/applications/mspaint/toolbox.cpp
b/base/applications/mspaint/toolbox.cpp
index 575ad62692c..c989b882295 100644
--- a/base/applications/mspaint/toolbox.cpp
+++ b/base/applications/mspaint/toolbox.cpp
@@ -57,12 +57,6 @@ LRESULT CToolBox::OnCreate(UINT nMsg, WPARAM wParam, LPARAM lParam,
BOOL& bHandl
return 0;
}
-LRESULT CToolBox::OnSetCursor(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL&
bHandled)
-{
- SetCursor(LoadCursor(NULL, IDC_ARROW));
- return 0;
-}
-
LRESULT CToolBox::OnSysColorChange(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL&
bHandled)
{
toolbar.SendMessage(WM_SYSCOLORCHANGE, 0, 0);
diff --git a/base/applications/mspaint/toolbox.h b/base/applications/mspaint/toolbox.h
index fc02299565b..bce32048193 100644
--- a/base/applications/mspaint/toolbox.h
+++ b/base/applications/mspaint/toolbox.h
@@ -22,7 +22,6 @@ public:
BEGIN_MSG_MAP(CToolBox)
MESSAGE_HANDLER(WM_CREATE, OnCreate)
- MESSAGE_HANDLER(WM_SETCURSOR, OnSetCursor)
MESSAGE_HANDLER(WM_SYSCOLORCHANGE, OnSysColorChange)
MESSAGE_HANDLER(WM_COMMAND, OnCommand)
MESSAGE_HANDLER(WM_TOOLSMODELTOOLCHANGED, OnToolsModelToolChanged)