要设置CListCtrl中的ScrollBar的位置可通过:
SetScrollPos( int nBar, int nPos, BOOL bRedraw = TRUE );但是为什么
GetScrollPos()得到的坐标(x, y),再调用SetScrollPos 时却不是原来的位置呢? 用SetScrollPos()设置横坐标时可以,但是纵坐标却不能?有那位兄弟会阿?
快帮忙。
SetScrollPos( int nBar, int nPos, BOOL bRedraw = TRUE );但是为什么
GetScrollPos()得到的坐标(x, y),再调用SetScrollPos 时却不是原来的位置呢? 用SetScrollPos()设置横坐标时可以,但是纵坐标却不能?有那位兄弟会阿?
快帮忙。
point = GetScrollPosition();
SetScrollPos(SB_HORZ, point.x);
SetScrollPos(SB_VERT, point.y));
Invalidate(TRUE);