我们有功能强大的
BOOL CWnd::SetScrollInfo( int nBar, LPSCROLLINFO lpScrollInfo, BOOL bRedraw = TRUE );要干什么吧,用它应该可以搞定的.各参数说明:
nBarSpecifies whether the scroll bar is a control or part of a window’s nonclient area. If it is part of the nonclient area, nBar also indicates whether the scroll bar is positioned horizontally, vertically, or both. It must be one of the following: SB_CTL   Contains the parameters for a scroll bar control. The m_hWnd data member must be the handle of the scroll bar control.
SB_HORZ   Specifies that the window is a horizontal scroll bar.
SB_VERT   Specifies that the window is a vertical scroll bar. 
lpScrollInfoA pointer to aSCROLLINFO structure. See the Win32 SDK Programmer’s Reference for more information about this structure.bRedrawSpecifies whether the scroll bar should be redrawn to reflect the new position. If bRedraw is TRUE, the scroll bar is redrawn. If it is FALSE, it is not redrawn. The scroll bar is redrawn by default.
关于SCROLLINFO结构的含义如下:
typedef struct tagSCROLLINFO { 
    UINT cbSize; 
    UINT fMask; 
    int  nMin; 
    int  nMax; 
    UINT nPage; 
    int  nPos; 
    int  nTrackPos; 
}   SCROLLINFO, *LPSCROLLINFO; 
typedef SCROLLINFO CONST *LPCSCROLLINFOcbSize 
Specifies the size, in bytes, of this structure. 
fMask 
Specifies the scroll bar parameters to set or retrieve. This member can be a combination of the following values: Value Meaning 
SIF_ALL Combination of SIF_PAGE, SIF_POS, SIF_RANGE, and SIF_TRACKPOS. 
SIF_DISABLENOSCROLL This value is used only when setting a scroll bar's parameters. If the scroll bar's new parameters make the scroll bar unnecessary, disable the scroll bar instead of removing it.  
SIF_PAGE The nPage member contains the page size for a proportional scroll bar. 
SIF_POS The nPos member contains the scroll box position, which is not updated while the user drags the scroll box. 
SIF_RANGE The nMin and nMax members contain the minimum and maximum values for the scrolling range. 
SIF_TRACKPOS The nTrackPos member contains the current position of the scroll box while the user is dragging it. 各成员含义:
nMin 
Specifies the minimum scrolling position. 
nMax 
Specifies the maximum scrolling position. 
nPage 
Specifies the page size. A scroll bar uses this value to determine the appropriate size of the proportional scroll box. 
nPos 
Specifies the position of the scroll box. 
nTrackPos 
Specifies the immediate position of a scroll box that the user is dragging. An application can retrieve this value while processing the SB_THUMBTRACK request code. An application cannot set the immediate scroll position; the SetScrollInfo function ignores this member. 你以为类向导是什么啊?
MSDN三个月更新一次,VC集成环境可不是呀,要帮助应该找专业的帮助.
类向导只不过给你提供一点小小小小小的方便而已....