CScrollView::SetScrollSizes

This method is called when the view is about to be updated. Call it in your override of the OnUpdate method to adjust scrolling characteristics when, for example, the document is initially displayed or when it changes size.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

void SetScrollSizes( int nMapMode, SIZE sizeTotal,
const SIZE&
sizePage = sizeDefault, const SIZE& sizeLine = sizeDefault );

Remarks

Windows CE only supports the MM_TEXT value for the nMapMode parameter.

See Also

CScrollView::SetScaleToFitSize, CScrollView::GetDeviceScrollSizes, CScrollView::GetTotalSize