MiniGUI API Reference (MiniGUI-Processes)
v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
|
Data Structures | |
struct | _SCROLLINFO |
Macros | |
#define | SB_ARROW_LTUP 0x0001 |
#define | SB_ARROW_BTDN 0x0002 |
#define | SB_ARROW_BOTH (SB_ARROW_LTUP | SB_ARROW_BTDN) |
Typedefs | |
typedef struct _SCROLLINFO | SCROLLINFO |
Functions | |
MG_EXPORT BOOL GUIAPI | EnableScrollBar (HWND hWnd, int iSBar, BOOL bEnable) |
Enables or disables one scroll bar arrows. More... | |
MG_EXPORT BOOL GUIAPI | GetScrollPos (HWND hWnd, int iSBar, int *pPos) |
Retrieve the current position of the scroll box (thumb) in the specified scroll bar. More... | |
MG_EXPORT BOOL GUIAPI | GetScrollRange (HWND hWnd, int iSBar, int *pMinPos, int *pMaxPos) |
Retrieve the minimum and maximum position values for the specified scroll bar. More... | |
MG_EXPORT BOOL GUIAPI | SetScrollPos (HWND hWnd, int iSBar, int iNewPos) |
Set the position of the scroll box (thumb) of the specified scroll bar. More... | |
MG_EXPORT BOOL GUIAPI | SetScrollRange (HWND hWnd, int iSBar, int iMinPos, int iMaxPos) |
Set the minimum and maximum position values for the specified scroll bar. More... | |
MG_EXPORT BOOL GUIAPI | ShowScrollBar (HWND hWnd, int iSBar, BOOL bShow) |
Shows or hides the specified scroll bar. More... | |
MG_EXPORT BOOL GUIAPI | SetScrollInfo (HWND hWnd, int iSBar, const SCROLLINFO *lpsi, BOOL fRedraw) |
Set the parameters of a scroll bar. More... | |
MG_EXPORT BOOL GUIAPI | GetScrollInfo (HWND hWnd, int iSBar, PSCROLLINFO lpsi) |
Retrieve the parameters of a scroll bar. More... | |
#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 | ||
) |
Retrieve 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. |
Retrieve 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. |
Retrieve the minimum and maximum position values for the specified scroll bar.
This function retrieves 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 | ||
) |
Set 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. |
Set 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. |
Set 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. |