MiniGUI API Reference (MiniGUI-Processes)  v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Macros
Messages of trackbar control

Macros

#define TBM_SETRANGE   0xF090
 Sets the range of minimum and maximum logical positions for the slider in a trackbar. More...
 
#define TBM_GETMIN   0xF091
 Gets the minimum logical position for the slider. More...
 
#define TBM_SETPOS   0xF092
 Sets the current logical position of the slider. More...
 
#define TBM_GETPOS   0xF093
 Gets the current logical position of the slider. More...
 
#define TBM_SETLINESIZE   0xF094
 Sets the number of logical positions moved in response to keyboard input from the arrow keys. More...
 
#define TBM_GETLINESIZE   0xF095
 Gets the number of logical positions moved in response to keyboard input from the arrow keys. More...
 
#define TBM_SETPAGESIZE   0xF096
 Sets the number of logical positions moved in response to keyboard input from page keys.. More...
 
#define TBM_GETPAGESIZE   0xF097
 Gets the number of logical positions moved in response to keyboard input from page keys.. More...
 
#define TBM_SETTIP   0xF098
 Sets the start and end tip strings. More...
 
#define TBM_GETTIP   0xF09A
 Gets the start and end tip strings. More...
 
#define TBM_SETTICKFREQ   0xF09B
 Sets the interval frequency for tick marks in a trackbar. More...
 
#define TBM_GETTICKFREQ   0xF09C
 Gets the interval frequency for tick marks in a trackbar. More...
 
#define TBM_SETMIN   0xF09D
 Sets the minimum logical position for the slider in a trackbar. More...
 
#define TBM_SETMAX   0xF09E
 Sets the maximum logical position for the slider in a trackbar. More...
 
#define TBM_GETMAX   0xF09F
 Gets the maximum logical position for the slider in a trackbar. More...
 

Detailed Description

Macro Definition Documentation

#define TBM_GETLINESIZE   0xF095

Gets the number of logical positions moved in response to keyboard input from the arrow keys.

Gets the number of logical positions the trackbar's slider moves in response to keyboard input from the arrow keys. The logical positions are the integer increments in the trackbar's range of minimum to maximum slider positions.

1 TBM_GETLINESIZE
2 
3 wParam = 0;
4 lParam = 0;
Returns
The current line size.

Definition at line 236 of file trackbar.h.

#define TBM_GETMAX   0xF09F

Gets the maximum logical position for the slider in a trackbar.

1 TBM_GETMAX
2 
3 wParam = 0;
4 lParam = 0;
Returns
The current maximum logical position for the slider in a trackbar.

Definition at line 407 of file trackbar.h.

#define TBM_GETMIN   0xF091

Gets the minimum logical position for the slider.

1 TBM_GETMIN
2 
3 wParam = 0;
4 lParam = 0;
Returns
The minimum logical position for the slider.

Definition at line 160 of file trackbar.h.

#define TBM_GETPAGESIZE   0xF097

Gets the number of logical positions moved in response to keyboard input from page keys..

Gets the number of logical positions the trackbar's slider moves in response to keyboard input form page keys, such as PAGE DOWN or PAGE UP keys. The logical positions are the integer increments in the trackbar's range of minimum to maximum slider positions.

1 TBM_GETPAGESIZE
2 
3 wParam = 0;
4 lParam = 0;
Returns
The current page size.

Definition at line 281 of file trackbar.h.

#define TBM_GETPOS   0xF093

Gets the current logical position of the slider.

1 TBM_GETPOS
2 
3 wParam = 0;
4 lParam = 0;
Returns
The current logical position of the slider.

Definition at line 193 of file trackbar.h.

#define TBM_GETTICKFREQ   0xF09C

Gets the interval frequency for tick marks in a trackbar.

1 TBM_GETTICKFREQ
2 
3 wParam = 0;
4 lParam = 0;
Returns
The current interval frequency for tick marks in a trackbar.

Definition at line 356 of file trackbar.h.

#define TBM_GETTIP   0xF09A

Gets the start and end tip strings.

1 TBM_GETTIP
2 char starttip [TBLEN_TIP + 1];
3 char endtip [TBLEN_TIP + 1];
4 
5 wParam = (WPARAM)starttip;
6 lParam = (LPARAM)endtip;
Parameters
starttipBuffer receives the start tip string. It should be length enough to save (TBLEN_TIP + 1) characters.
endtipBuffer receives the end tip string. It should be length enough to save (TBLEN_TIP + 1) characters.
Returns
Always be zero.

Definition at line 323 of file trackbar.h.

#define TBM_SETLINESIZE   0xF094

Sets the number of logical positions moved in response to keyboard input from the arrow keys.

Sets the number of logical positions the trackbar's slider moves in response to keyboard input from the arrow keys. The logical positions are the integer increments in the trackbar's range of minimum to maximum slider positions.

1 TBM_SETLINESIZE
2 int linesize;
3 
4 wParam = (WPARAM)linesize;
5 lParam = 0;
Parameters
linesizeNew line size.
Returns
Zero on success; otherwise -1.

Definition at line 216 of file trackbar.h.

#define TBM_SETMAX   0xF09E

Sets the maximum logical position for the slider in a trackbar.

1 TBM_SETMAX
2 int max;
3 
4 wParam = (WPARAM)max;
5 lParam = 0;
Parameters
minThe new maximum logical position for the slider in a trackbar.
Returns
Zero on success; otherwise -1.

Definition at line 392 of file trackbar.h.

#define TBM_SETMIN   0xF09D

Sets the minimum logical position for the slider in a trackbar.

1 TBM_SETMIN
2 int min;
3 
4 wParam = (WPARAM)min;
5 lParam = 0;
Parameters
minThe new minimum logical position for the slider in a trackbar.
Returns
Zero on success; otherwise -1.

Definition at line 374 of file trackbar.h.

#define TBM_SETPAGESIZE   0xF096

Sets the number of logical positions moved in response to keyboard input from page keys..

Sets the number of logical positions the trackbar's slider moves in response to keyboard input form page keys, such as PAGE DOWN or PAGE UP keys. The logical positions are the integer increments in the trackbar's range of minimum to maximum slider positions.

1 TBM_SETPAGESIZE
2 int pagesize;
3 
4 wParam = (WPARAM)pagesize;
5 lParam = 0;
Parameters
pagesizeNew page size.
Returns
Zero on success; otherwise -1.

Definition at line 260 of file trackbar.h.

#define TBM_SETPOS   0xF092

Sets the current logical position of the slider.

1 TBM_SETPOS
2 int pos;
3 
4 wParam = (WPARAM)pos;
5 lParam = 0;
Parameters
posNew logical position of the slider.
Returns
Always be zero.

Definition at line 178 of file trackbar.h.

#define TBM_SETRANGE   0xF090

Sets the range of minimum and maximum logical positions for the slider in a trackbar.

1 TBM_SETRANGE
2 int min;
3 int max;
4 
5 wParam = (WPARAM)min;
6 lParam = (LPARAM)max;
Parameters
minMinimum position for the slider.
maxMaximum position for the slider.
Returns
Zero on success; otherwise -1.

Definition at line 145 of file trackbar.h.

#define TBM_SETTICKFREQ   0xF09B

Sets the interval frequency for tick marks in a trackbar.

1 TBM_SETTICKFREQ
2 int tickfreq;
3 
4 wParam = (WPARAM)tickfreq;
5 lParam = 0;
Parameters
tickfreqNew interval frequency for tick marks in a trackbar.
Returns
Zero on success; otherwise -1.

Definition at line 341 of file trackbar.h.

#define TBM_SETTIP   0xF098

Sets the start and end tip strings.

1 TBM_SETTIP
2 char* starttip;
3 char* endtip;
4 
5 wParam = (WPARAM)starttip;
6 lParam = (LPARAM)endtip;
Parameters
starttipNew start tip string.
endtipNew end tip tip string.
Returns
Always be zero.

Definition at line 301 of file trackbar.h.