CScrollView::ScrollToPosition
Call ScrollToPosition to scroll to a given point in the view.
void ScrollToPosition(
POINT pt
);
Параметры
- pt
The point to scroll to, in logical units. The x member must be a positive value (greater than or equal to 0, up to the total size of the view). The same is true for the y member when the mapping mode is MM_TEXT. The y member is negative in mapping modes other than MM_TEXT.
Заметки
The view will be scrolled so that this point is at the upper-left corner of the window. This member function must not be called if the view is scaled to fit.
Требования
Header: afxwin.h
См. также
Основные понятия
CScrollView::GetDeviceScrollPosition