INT GetScrollPos( |
|
INT nScrollBar |
|
); |
The GetScrollPos method gets the position of the scroll box
for the specified scroll bar.
Parameters
- nScrollBar
- Specifies the scroll bar to return the position for. This
parameter can be one of the following values:
Constant |
Description |
SB_HORZ |
Gets the position of the scroll box in the display's
standard horizontal scroll bar. |
SB_VERT |
Gets the position of the scroll box in the display's
standard vertical scroll bar. |
Return Value
If the method succeeds, the return value is the position of the
scroll box. If the method fails, it returns -1.
Requirements
Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header File: cstools10.h
Import Library: csnvtv10.lib
See Also
SetScrollPos
|