ReactOS  0.4.15-dev-3203-gacde1e0
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
BOOL MoveWindow(int x, int y, int nWidth, int nHeight, BOOL bRepaint=TRUE)
Definition: atlwin.h:961
#define SB_VERT
Definition: winuser.h:553
#define TRUE
Definition: types.h:120
#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:72
#define FALSE
Definition: types.h:117
int GetWidth()
Definition: history.cpp:194
int GetHeight()
Definition: history.cpp:199
ImageModel imageModel
Definition: main.cpp:32
CScrollboxWindow scrollboxWindow
Definition: main.cpp:69
BOOL Invalidate(BOOL bErase=TRUE)
Definition: atlwin.h:831
CSelectionWindow selectionWindow
Definition: main.cpp:71

Referenced by CImgAreaWindow::OnImageModelDimensionsChanged().