#define SB_ARROW_BOTH (SB_ARROW_LTUP | SB_ARROW_BTDN) |
typedef struct _SCROLLINFO SCROLLINFO |
Scroll bar information structure.
Enables or disables one scroll bar arrows.
This function enables or disables one scroll bar arrows.
hWnd | The handle to the window. | |
iSBar | Indicates to enable or disable which scroll bar, can be one of the following values:
| |
bEnable | Indicates whether to enable or disable the scroll bar. |
BOOL GUIAPI GetScrollInfo | ( | HWND | hWnd, | |
int | iSBar, | |||
PSCROLLINFO | lpsi | |||
) |
Retrieves the parameters of a scroll bar.
This function retrieves the parameters of a scroll bar, including the minimum and maximum scrolling positions, the page size, and the position of the scroll box (thumb).
hWnd | The handle to the window. | |
iSBar | Indicates to enable or disable which scroll bar, can be one of the following values:
| |
lpsi | The pointer to a structure of SCROLLINFO which receives the parameters. |
Retrieves the current position of the scroll box (thumb) in the specified scroll bar.
This function retrieves the current position of the scroll box (thumb) in the specified scroll bar. The current position is a relative value that depends on the current scrolling range.
hWnd | The handle to the window. | |
iSBar | Indicates to enable or disable which scroll bar, can be one of the following values:
| |
pPos | The pointer to a integer which receives the position value. |
Retrives the minimum and maximum position values for the specified scroll bar.
This function retrives the minimum and maximum position values for the specified scroll bar.
hWnd | The handle to the window. | |
iSBar | Indicates to enable or disable which scroll bar, can be one of the following values:
| |
pMinPos | The pointer to a integer which receives the minimum position value. | |
pMaxPos | The pointer to a integer which receives the maximum position value. |
BOOL GUIAPI SetScrollInfo | ( | HWND | hWnd, | |
int | iSBar, | |||
const SCROLLINFO * | lpsi, | |||
BOOL | fRedraw | |||
) |
Sets the parameters of a scroll bar.
This function sets the parameters of a scroll bar, including the minimum and maximum scrolling positions, the page size, and the position of the scroll box (thumb). The function also redraws the scroll bar, if requested.
hWnd | The handle to the window. | |
iSBar | Indicates to enable or disable which scroll bar, can be one of the following values:
| |
lpsi | The pointer to the structure of scroll bar information. | |
fRedraw | A boolean indicates whether to redraw the scroll bar. |
Sets the position of the scroll box (thumb) of the specified scroll bar.
This function sets the position of the scroll box (thumb) of the specified scroll bar, and if needed, redraws the scroll bar to reflect the new position of the scroll box.
hWnd | The handle to the window. | |
iSBar | Indicates to enable or disable which scroll bar, can be one of the following values:
| |
iNewPos | The new position value. |
Sets the minimum and maximum position values for the specified scroll bar.
This function sets the minimum and maximum position values for the specified scroll bar, and if needed, redraws the scroll bar to reflect the new position values of the scroll box.
hWnd | The handle to the window. | |
iSBar | Indicates to enable or disable which scroll bar, can be one of the following values:
| |
iMinPos | The new minimum position value. | |
iMaxPos | The new maximum position value. |
Shows or hides the specified scroll bar.
This function shows or hides the specified scroll bar.
hWnd | The handle to the window. | |
iSBar | Indicates to enable or disable which scroll bar, can be one of the following values:
| |
bShow | Indicates whether show or hide the scrollbar. |