mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[MSPAINT] Delete useless CTextEditWindow::m_nAppIsMovingOrSizing
CORE-18867
This commit is contained in:
parent
fdba69be7c
commit
7bb0561c2d
2 changed files with 3 additions and 6 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue