https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b5ae55f3ff753cb76fc50fb22db276938d51e688

commit b5ae55f3ff753cb76fc50fb22db276938d51e688
Author:     Katayama Hirofumi MZ <[email protected]>
AuthorDate: Thu Mar 16 17:56:05 2023 +0900
Commit:     Katayama Hirofumi MZ <[email protected]>
CommitDate: Thu Mar 16 17:56:05 2023 +0900

    [MSPAINT] Delete useless CFullscreenWindow::OnSetCursor
    
    CORE-18867
---
 base/applications/mspaint/fullscreen.cpp | 7 -------
 base/applications/mspaint/fullscreen.h   | 2 --
 base/applications/mspaint/toolbox.h      | 1 -
 3 files changed, 10 deletions(-)

diff --git a/base/applications/mspaint/fullscreen.cpp 
b/base/applications/mspaint/fullscreen.cpp
index a20df99a8a2..4ea04090e92 100644
--- a/base/applications/mspaint/fullscreen.cpp
+++ b/base/applications/mspaint/fullscreen.cpp
@@ -47,13 +47,6 @@ LRESULT CFullscreenWindow::OnSize(UINT nMsg, WPARAM wParam, 
LPARAM lParam, BOOL&
     return 0;
 }
 
-LRESULT CFullscreenWindow::OnSetCursor(UINT nMsg, WPARAM wParam, LPARAM 
lParam, BOOL& bHandled)
-{
-    SetCursor(LoadCursor(NULL, IDC_ARROW));
-    bHandled = FALSE;
-    return 0;
-}
-
 LRESULT CFullscreenWindow::OnGetText(UINT nMsg, WPARAM wParam, LPARAM lParam, 
BOOL& bHandled)
 {
     // return caption of the main window, instead
diff --git a/base/applications/mspaint/fullscreen.h 
b/base/applications/mspaint/fullscreen.h
index 2a41d099786..64f3ce05fad 100644
--- a/base/applications/mspaint/fullscreen.h
+++ b/base/applications/mspaint/fullscreen.h
@@ -20,7 +20,6 @@ public:
         MESSAGE_HANDLER(WM_LBUTTONDOWN, OnCloseOrKeyDownOrLButtonDown)
         MESSAGE_HANDLER(WM_PAINT, OnPaint)
         MESSAGE_HANDLER(WM_SIZE, OnSize)
-        MESSAGE_HANDLER(WM_SETCURSOR, OnSetCursor)
         MESSAGE_HANDLER(WM_GETTEXT, OnGetText)
     END_MSG_MAP()
 
@@ -28,6 +27,5 @@ public:
     LRESULT OnCloseOrKeyDownOrLButtonDown(UINT nMsg, WPARAM wParam, LPARAM 
lParam, BOOL& bHandled);
     LRESULT OnPaint(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
     LRESULT OnSize(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
-    LRESULT OnSetCursor(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& 
bHandled);
     LRESULT OnGetText(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
 };
diff --git a/base/applications/mspaint/toolbox.h 
b/base/applications/mspaint/toolbox.h
index bce32048193..ac40ab19e5a 100644
--- a/base/applications/mspaint/toolbox.h
+++ b/base/applications/mspaint/toolbox.h
@@ -30,7 +30,6 @@ public:
     CWindow toolbar;
 
     LRESULT OnCreate(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
-    LRESULT OnSetCursor(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& 
bHandled);
     LRESULT OnSysColorChange(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& 
bHandled);
     LRESULT OnCommand(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
     LRESULT OnToolsModelToolChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, 
BOOL& bHandled);

Reply via email to