mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 06:55:44 +00:00
[MSPAINT] Improve Zoom tool (#5798)
- Delete global zoomTo function. - Add CCanvasWindow::zoomTo and CCanvasWindow::getNewZoomRect functions. - Rename CCanvasWindow::updateScrollInfo as CCanvasWindow::updateScrollRange. - Rename CCanvasWindow::resetScrollPos as CCanvasWindow::updateScrollPos. - Draw the proper zoom rectangle on mouse move. - Revert the active tool on click when the tool was Zoom. CORE-19094
This commit is contained in:
parent
e2d3aa7f4a
commit
8f1eb03ad2
8 changed files with 113 additions and 73 deletions
|
@ -309,7 +309,7 @@ LRESULT CToolSettingsWindow::OnDestroy(UINT nMsg, WPARAM wParam, LPARAM lParam,
|
|||
LRESULT CToolSettingsWindow::OnVScroll(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
|
||||
{
|
||||
INT trackPos = MAX_ZOOM_TRACK - (INT)trackbarZoom.SendMessage(TBM_GETPOS, 0, 0);
|
||||
zoomTo(MIN_ZOOM << trackPos, 0, 0);
|
||||
canvasWindow.zoomTo(MIN_ZOOM << trackPos);
|
||||
|
||||
INT zoomRate = toolsModel.GetZoom();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue