ReactOS  0.4.14-dev-1338-g0d187f7
imgarea.cpp File Reference
#include "precomp.h"
#include "dialogs.h"
Include dependency graph for imgarea.cpp:

Go to the source code of this file.


void updateCanvasAndScrollbars ()

Function Documentation

◆ updateCanvasAndScrollbars()

void updateCanvasAndScrollbars ( )

Definition at line 20 of file imgarea.cpp.

21 {
22  selectionWindow.ShowWindow(SW_HIDE);
24  int zoomedWidth = imageModel.GetWidth() * toolsModel.GetZoom() / 1000;
25  int zoomedHeight = imageModel.GetHeight() * toolsModel.GetZoom() / 1000;
26  imageArea.MoveWindow(3, 3, zoomedWidth, zoomedHeight, FALSE);
28  scrollboxWindow.Invalidate(TRUE);
31  scrollboxWindow.SetScrollPos(SB_HORZ, 0, TRUE);
32  scrollboxWindow.SetScrollPos(SB_VERT, 0, TRUE);
33 }
ToolsModel toolsModel
Definition: main.cpp:18
#define TRUE
Definition: types.h:120
BOOL MoveWindow(int x, int y, int nWidth, int nHeight, BOOL bRepaint=TRUE)
Definition: atlwin.h:958
#define SB_VERT
Definition: winuser.h:553
#define SW_HIDE
Definition: winuser.h:762
#define SB_HORZ
Definition: winuser.h:552
int GetZoom()
Definition: toolsmodel.cpp:104
CImgAreaWindow imageArea
Definition: main.cpp:71
int GetWidth()
Definition: history.cpp:195
int GetHeight()
Definition: history.cpp:200
ImageModel imageModel
Definition: main.cpp:32
CScrollboxWindow scrollboxWindow
Definition: main.cpp:68
BOOL Invalidate(BOOL bErase=TRUE)
Definition: atlwin.h:828
CSelectionWindow selectionWindow
Definition: main.cpp:70

Referenced by CImgAreaWindow::OnImageModelDimensionsChanged().