LibUIDK Documentation
ContentsIndexHome
PreviousUpNext
CScrollBarEx::SetScrollPos Method
C++
BOOL SetScrollPos(int nPos, BOOL bRedraw = TRUE);

设置滚动条当前滑块位置.

Parameters 
Description 
int nPos 
指定滚动条当前滑块位置. 
BOOL bRedraw = TRUE 
指定设置完滚动条当前滑块位置后, 是否立即刷新. 

成功返回非0值, 失败返回0.