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

Macros

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

Detailed Description

Macro Definition Documentation

◆ TBM_GETLINESIZE

#define TBM_GETLINESIZE   0xF095

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

Get 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.

wParam = 0;
lParam = 0;
Returns
The current line size.

Definition at line 248 of file trackbar.h.

◆ TBM_GETMAX

#define TBM_GETMAX   0xF09F

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

wParam = 0;
lParam = 0;
Returns
The current maximum logical position for the slider in a trackbar.

Definition at line 419 of file trackbar.h.

◆ TBM_GETMIN

#define TBM_GETMIN   0xF091

Get the minimum logical position for the slider.

wParam = 0;
lParam = 0;
Returns
The minimum logical position for the slider.

Definition at line 172 of file trackbar.h.

◆ TBM_GETPAGESIZE

#define TBM_GETPAGESIZE   0xF097

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

Get 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.

wParam = 0;
lParam = 0;
Returns
The current page size.

Definition at line 293 of file trackbar.h.

◆ TBM_GETPOS

#define TBM_GETPOS   0xF093

Get the current logical position of the slider.

wParam = 0;
lParam = 0;
Returns
The current logical position of the slider.

Definition at line 205 of file trackbar.h.

◆ TBM_GETTICKFREQ

#define TBM_GETTICKFREQ   0xF09C

Get the interval frequency for tick marks in a trackbar.

wParam = 0;
lParam = 0;
Returns
The current interval frequency for tick marks in a trackbar.

Definition at line 368 of file trackbar.h.

◆ TBM_GETTIP

#define TBM_GETTIP   0xF09A

Get the start and end tip strings.

char starttip [TBLEN_TIP + 1];
char endtip [TBLEN_TIP + 1];
wParam = (WPARAM)starttip;
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 335 of file trackbar.h.

◆ TBM_SETLINESIZE

#define TBM_SETLINESIZE   0xF094

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

Set 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.

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

Definition at line 228 of file trackbar.h.

◆ TBM_SETMAX

#define TBM_SETMAX   0xF09E

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

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

Definition at line 404 of file trackbar.h.

◆ TBM_SETMIN

#define TBM_SETMIN   0xF09D

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

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

Definition at line 386 of file trackbar.h.

◆ TBM_SETPAGESIZE

#define TBM_SETPAGESIZE   0xF096

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

Set 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.

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

Definition at line 272 of file trackbar.h.

◆ TBM_SETPOS

#define TBM_SETPOS   0xF092

Set the current logical position of the slider.

int pos;
wParam = (WPARAM)pos;
lParam = 0;
Parameters
posNew logical position of the slider.
Returns
Always be zero.

Definition at line 190 of file trackbar.h.

◆ TBM_SETRANGE

#define TBM_SETRANGE   0xF090

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

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

Definition at line 157 of file trackbar.h.

◆ TBM_SETTICKFREQ

#define TBM_SETTICKFREQ   0xF09B

Set the interval frequency for tick marks in a trackbar.

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

Definition at line 353 of file trackbar.h.

◆ TBM_SETTIP

#define TBM_SETTIP   0xF098

Set the start and end tip strings.

char* starttip;
char* endtip;
wParam = (WPARAM)starttip;
lParam = (LPARAM)endtip;
Parameters
starttipNew start tip string.
endtipNew end tip tip string.
Returns
Always be zero.

Definition at line 313 of file trackbar.h.

TBM_SETMAX
#define TBM_SETMAX
Set the maximum logical position for the slider in a trackbar.
Definition: trackbar.h:404
TBM_SETLINESIZE
#define TBM_SETLINESIZE
Set the number of logical positions moved in response to keyboard input from the arrow keys.
Definition: trackbar.h:228
TBM_SETPOS
#define TBM_SETPOS
Set the current logical position of the slider.
Definition: trackbar.h:190
TBLEN_TIP
#define TBLEN_TIP
The maximum length of the trackbar tip string.
Definition: trackbar.h:90
WPARAM
UINT_PTR WPARAM
A type definition for the first message paramter.
Definition: common.h:706
TBM_GETMIN
#define TBM_GETMIN
Get the minimum logical position for the slider.
Definition: trackbar.h:172
TBM_SETTICKFREQ
#define TBM_SETTICKFREQ
Set the interval frequency for tick marks in a trackbar.
Definition: trackbar.h:353
TBM_SETPAGESIZE
#define TBM_SETPAGESIZE
Set the number of logical positions moved in response to keyboard input from page keys....
Definition: trackbar.h:272
TBM_GETTICKFREQ
#define TBM_GETTICKFREQ
Get the interval frequency for tick marks in a trackbar.
Definition: trackbar.h:368
TBM_GETPOS
#define TBM_GETPOS
Get the current logical position of the slider.
Definition: trackbar.h:205
TBM_GETLINESIZE
#define TBM_GETLINESIZE
Get the number of logical positions moved in response to keyboard input from the arrow keys.
Definition: trackbar.h:248
TBM_SETTIP
#define TBM_SETTIP
Set the start and end tip strings.
Definition: trackbar.h:313
TBM_SETMIN
#define TBM_SETMIN
Set the minimum logical position for the slider in a trackbar.
Definition: trackbar.h:386
TBM_GETPAGESIZE
#define TBM_GETPAGESIZE
Get the number of logical positions moved in response to keyboard input from page keys....
Definition: trackbar.h:293
TBM_SETRANGE
#define TBM_SETRANGE
Set the range of minimum and maximum logical positions for the slider in a trackbar.
Definition: trackbar.h:157
TBM_GETMAX
#define TBM_GETMAX
Get the maximum logical position for the slider in a trackbar.
Definition: trackbar.h:419
TBM_GETTIP
#define TBM_GETTIP
Get the start and end tip strings.
Definition: trackbar.h:335
LPARAM
UINT_PTR LPARAM
A type definition for the second message paramter.
Definition: common.h:712