9. Getting Scroll Bars Information
Windows provides the functions GetScrollRange and GetScrollPos to obtain the current range and position of a scroll bar.
GetScrollInfo (hwnd, iBar, &si);
The information is provided in the following structure:
typedef struct tagSCROLLINFO {
UINT cbSize;
UINT fMask;
int nMin;
int nMax;
UINT nPage;
int nPos;
int nTrackPos;
} SCROLLINFO, *LPSCROLLINFO;
|