ReactOS  0.4.15-dev-5462-g4d0d22a
imgarea.cpp File Reference
#include "precomp.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 18 of file imgarea.cpp.

19 {
20  selectionWindow.ShowWindow(SW_HIDE);
22  int zoomedWidth = Zoomed(imageModel.GetWidth());
23  int zoomedHeight = Zoomed(imageModel.GetHeight());
24  imageArea.MoveWindow(GRIP_SIZE, GRIP_SIZE, zoomedWidth, zoomedHeight, FALSE);
26  scrollboxWindow.Invalidate(TRUE);
29  scrollboxWindow.SetScrollPos(SB_HORZ, 0, TRUE);
30  scrollboxWindow.SetScrollPos(SB_VERT, 0, TRUE);
31 }
static int Zoomed(int xy)
Definition: common.h:37
BOOL MoveWindow(int x, int y, int nWidth, int nHeight, BOOL bRepaint=TRUE)
Definition: atlwin.h:1020
#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
CImgAreaWindow imageArea
Definition: main.cpp:72
#define FALSE
Definition: types.h:117
int GetWidth() const
Definition: history.cpp:215
#define GRIP_SIZE
Definition: common.h:13
ImageModel imageModel
Definition: main.cpp:32
int GetHeight() const
Definition: history.cpp:220
CScrollboxWindow scrollboxWindow
Definition: main.cpp:69
BOOL Invalidate(BOOL bErase=TRUE)
Definition: atlwin.h:890
CSelectionWindow selectionWindow
Definition: main.cpp:71

Referenced by CImgAreaWindow::OnImageModelDimensionsChanged().