mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 19:11:51 +00:00
[MSPAINT] Add selectionModel.moveSelection and use it
Refactoring. CORE-19094
This commit is contained in:
parent
58c26d3fe6
commit
f935132fbe
5 changed files with 15 additions and 15 deletions
|
@ -770,16 +770,6 @@ VOID CCanvasWindow::EndSelectionDrag(POINT ptImage)
|
|||
Invalidate(FALSE);
|
||||
}
|
||||
|
||||
VOID CCanvasWindow::MoveSelection(INT xDelta, INT yDelta)
|
||||
{
|
||||
if (!selectionModel.m_bShow)
|
||||
return;
|
||||
|
||||
selectionModel.TakeOff();
|
||||
::OffsetRect(&selectionModel.m_rc, xDelta, yDelta);
|
||||
Invalidate(FALSE);
|
||||
}
|
||||
|
||||
LRESULT CCanvasWindow::OnCtlColorEdit(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
|
||||
{
|
||||
SetTextColor((HDC)wParam, paletteModel.GetFgColor());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue