mirror of
https://github.com/reactos/reactos.git
synced 2026-06-09 01:12:59 +08:00
[MSPAINT] Improve Undo/Redo and finishing tool (#4324)
- Fix Undo/Redo mechanism. - Finish drawing when the tool is to be chanaged and when the file is to be saved. - Add ToolBase::OnFinishDraw to virtualize finishing drawing. - Extend bClearRedo parameter to ImageModel::Undo. - Add ImageModel::DrawSelectionBackground and ImageModel::DeleteSelection methods. - Fix some WM_PAINT message handling. CORE-17969
This commit is contained in:
committed by
GitHub
parent
c5b029d0fc
commit
0839711566
@@ -337,11 +337,6 @@ LONG SelectionModel::GetDestRectTop() const
|
||||
return m_rcDest.top;
|
||||
}
|
||||
|
||||
void SelectionModel::DrawTextToolText(HDC hDCImage, COLORREF crFg, COLORREF crBg, BOOL bBgTransparent)
|
||||
{
|
||||
Text(hDCImage, m_rcDest.left, m_rcDest.top, m_rcDest.right, m_rcDest.bottom, crFg, crBg, textToolText, hfontTextFont, bBgTransparent);
|
||||
}
|
||||
|
||||
void SelectionModel::NotifyRefreshNeeded()
|
||||
{
|
||||
selectionWindow.SendMessage(WM_SELECTIONMODELREFRESHNEEDED);
|
||||
|
||||
Reference in New Issue
Block a user