size
A CSize object specifying the amount of horizontal and vertical scrolling, in pixels. The y member of size is divided by the height, in pixels, of the list view control's line, and the control is scrolled by the resulting number of lines.
A CSize object specifying the amount of horizontal and vertical scrolling, in pixels. The y member of size is divided by the height, in pixels, of the list view control's line, and the control is scrolled by the resulting number of lines.
size.y会被控件每一行内容的像素数除,结果就是在纵向距离上要滚动几行。
如果行距为10的话
CSize size;
size.cy=10*nIndex;
m_list1.Scroll(size);