https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7bb0561c2d1142fc4451d…
commit 7bb0561c2d1142fc4451dd32975772456c495ef0
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Mon Jun 19 13:46:16 2023 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Mon Jun 19 13:47:24 2023 +0900
[MSPAINT] Delete useless CTextEditWindow::m_nAppIsMovingOrSizing
CORE-18867
---
base/applications/mspaint/textedit.cpp | 8 +++-----
base/applications/mspaint/textedit.h | 1 -
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/base/applications/mspaint/textedit.cpp
b/base/applications/mspaint/textedit.cpp
index 8ec1155d1c9..dcc21ab2a66 100644
--- a/base/applications/mspaint/textedit.cpp
+++ b/base/applications/mspaint/textedit.cpp
@@ -14,7 +14,9 @@ CTextEditWindow textEditWindow;
/* FUNCTIONS ********************************************************/
-CTextEditWindow::CTextEditWindow() : m_hFont(NULL), m_hFontZoomed(NULL),
m_nAppIsMovingOrSizing(0)
+CTextEditWindow::CTextEditWindow()
+ : m_hFont(NULL)
+ , m_hFontZoomed(NULL)
{
SetRectEmpty(&m_rc);
}
@@ -77,9 +79,7 @@ void CTextEditWindow::FixEditPos(LPCTSTR pszOldText)
::GetClientRect(m_hwndParent, &rcParent);
IntersectRect(&rc, &rcParent, &rcWnd);
- ++m_nAppIsMovingOrSizing;
MoveWindow(rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top, FALSE);
- --m_nAppIsMovingOrSizing;
DefWindowProc(WM_HSCROLL, SB_LEFT, 0);
DefWindowProc(WM_VSCROLL, SB_TOP, 0);
@@ -383,9 +383,7 @@ void CTextEditWindow::ValidateEditRect(LPCRECT prc OPTIONAL)
CRect rc = m_rc;
canvasWindow.ImageToCanvas(rc);
- ++m_nAppIsMovingOrSizing;
MoveWindow(rc.left, rc.top, rc.Width(), rc.Height(), TRUE);
- --m_nAppIsMovingOrSizing;
}
LRESULT CTextEditWindow::OnMoving(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL&
bHandled)
diff --git a/base/applications/mspaint/textedit.h b/base/applications/mspaint/textedit.h
index 7060919cae6..798ae1951fb 100644
--- a/base/applications/mspaint/textedit.h
+++ b/base/applications/mspaint/textedit.h
@@ -81,7 +81,6 @@ protected:
HWND m_hwndParent;
HFONT m_hFont;
HFONT m_hFontZoomed;
- LONG m_nAppIsMovingOrSizing;
RECT m_rc;
INT DoHitTest(RECT& rc, POINT pt);