Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Call GetScrollPosition when you need the current horizontal and vertical positions of the scroll boxes in the scroll bars.
CPoint GetScrollPosition( ) const;
Return Value
The horizontal and vertical positions (in logical units) of the scroll boxes as a CPoint object.
Remarks
This coordinate pair corresponds to the location in the document to which the upper-left corner of the view has been scrolled.
GetScrollPosition returns values in logical units. If you want device units, use GetDeviceScrollPosition instead.
Requirements
Header: afxwin.h