Share via


CScrollView::GetDeviceScrollSizes

GetDeviceScrollSizes gets the current mapping mode, the total size, and the line and page sizes of the scrollable view.

void GetDeviceScrollSizes( 
   int& nMapMode, 
   SIZE& sizeTotal, 
   SIZE& sizePage, 
   SIZE& sizeLine  
) const;

Parameters

  • nMapMode
    Returns the current mapping mode for this view. For a list of possible values, see SetScrollSizes.

  • sizeTotal
    Returns the current total size of the scroll view in device units.

  • sizePage
    Returns the current horizontal and vertical amounts to scroll in each direction in response to a mouse click in a scroll-bar shaft. The cx member contains the horizontal amount. The cy member contains the vertical amount.

  • sizeLine
    Returns the current horizontal and vertical amounts to scroll in each direction in response to a mouse click in a scroll arrow. The cx member contains the horizontal amount. The cy member contains the vertical amount.

Remarks

Sizes are in device units. This member function is rarely called.

Requirements

Header: afxwin.h

See Also

Reference

CScrollView Class

Hierarchy Chart

CScrollView::SetScrollSizes

CScrollView::GetTotalSize

Other Resources

CScrollView Members