MiniGUI API Reference (MiniGUI-Threads)
v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
|
Macros | |
#define | SVM_ADDITEM 0xF300 |
Adds an item in the scrollview. More... | |
#define | SVM_DELITEM 0xF301 |
Deletes an item from the scrollview. More... | |
#define | SVM_SETITEMDRAW 0xF302 |
Sets the drawing operation of an item. More... | |
#define | SVM_ADDCTRLS 0xF303 |
Adds controls to the scrollview. More... | |
#define | SVM_SETCONTWIDTH 0xF306 |
Sets the scrollview content area (scrollable area) width. More... | |
#define | SVM_SETCONTHEIGHT 0xF307 |
Sets the scrollview content area (scrollable area) height. More... | |
#define | SVM_GETCTRL 0xF308 |
Gets the control handle in the scrollview window by control id. More... | |
#define | SVM_RESETCONTENT 0xF309 |
Clears all the controls and the items added to the scrollview window. More... | |
#define | SVM_SETITEMOPS 0xF30a |
Sets the item operations of the items in the scrollview. More... | |
#define | SVM_GETMARGINS 0xF30b |
Gets the margin values of the scrollview. More... | |
#define | SVM_SETMARGINS 0xF311 |
Sets the margin values of the scrollview. More... | |
#define | SVM_GETLEFTMARGIN 0xF312 |
Gets the left margin value of the scrollview. More... | |
#define | SVM_GETTOPMARGIN 0xF313 |
Gets the top margin value of the scrollview. More... | |
#define | SVM_GETRIGHTMARGIN 0xF314 |
Gets the right margin value of the scrollview. More... | |
#define | SVM_GETBOTTOMMARGIN 0xF315 |
Gets the bottom margin value of the scrollview. More... | |
#define | SVM_GETVISIBLEWIDTH 0xF316 |
Gets the width of the visible content area. More... | |
#define | SVM_GETVISIBLEHEIGHT 0xF317 |
Gets the height of the visible content area. More... | |
#define | SVM_GETCONTWIDTH 0xF318 |
Gets the width of the content area. More... | |
#define | SVM_GETCONTHEIGHT 0xF319 |
Gets the height of the content area. More... | |
#define | SVM_SETCONTRANGE 0xF31a |
Sets the width and height of the content area. More... | |
#define | SVM_GETCONTENTX 0xF31b |
Gets the content x offset in the viewport. More... | |
#define | SVM_GETCONTENTY 0xF31c |
Gets the content y offset in the viewport. More... | |
#define | SVM_SETCONTPOS 0xF31d |
Sets the content offset position in the viewport. More... | |
#define | SVM_GETCURSEL 0xF31e |
Gets the index of the current hilighted scrollview item. More... | |
#define | SVM_SELECTITEM 0xF31f |
Selects or unselects an item in the scrollview item. More... | |
#define | SVM_SHOWITEM 0xF320 |
Makes an item visible in the scrollview item. More... | |
#define | SVM_CHOOSEITEM 0xF321 |
Makes an item selected and visible in the scrollview item. More... | |
#define | SVM_SETCURSEL 0xF322 |
Makes an item as the current hilighted item in the scrollview item. More... | |
#define | SVM_SETITEMINIT 0xF323 |
Sets the init operation of the items in the scrollview. More... | |
#define | SVM_SETITEMDESTROY 0xF324 |
Sets the destroy operation of the items in the scrollview. More... | |
#define | SVM_SETITEMCMP 0xF327 |
Sets the item compare function. More... | |
#define | SVM_MAKEPOSVISIBLE 0xF328 |
Makes a position in the content area visible. More... | |
#define | SVM_SETCONTAINERPROC 0xF329 |
Sets the window procedure of the container window in the scrollview. More... | |
#define | SVM_GETFOCUSCHILD 0xF32a |
Gets the focus control in the scrollview. More... | |
#define | SVM_GETHSCROLLVAL 0xF32b |
Gets the horizontal scroll value. More... | |
#define | SVM_GETVSCROLLVAL 0xF32c |
Gets the vertical scroll value. More... | |
#define | SVM_GETHSCROLLPAGEVAL 0xF32d |
Gets the horizontal page scroll value. More... | |
#define | SVM_GETVSCROLLPAGEVAL 0xF32e |
Gets the vertical page scroll value. More... | |
#define | SVM_SETSCROLLVAL 0xF32f |
Sets the horizontal and vertical scroll value. More... | |
#define | SVM_SETSCROLLPAGEVAL 0xF330 |
Sets the horizontal and vertical page value. More... | |
#define | SVM_SORTITEMS 0xF331 |
Sorts the items according to a specified comparision function. More... | |
#define | SVM_GETITEMCOUNT 0xF332 |
Gets the total number of the items. More... | |
#define | SVM_GETITEMADDDATA 0xF333 |
Gets the additional data of the item. More... | |
#define | SVM_SETITEMADDDATA 0xF334 |
Sets the additional data of the item. More... | |
#define | SVM_REFRESHITEM 0xF335 |
Refresh the item. More... | |
#define | SVM_SETITEMHEIGHT 0xF336 |
Sets the height of an item. More... | |
#define | SVM_GETFIRSTVISIBLEITEM 0xF337 |
Gets the index of the first visible item. More... | |
#define SVM_ADDCTRLS 0xF303 |
Adds controls to the scrollview.
ctrlNr | Control number in the pctrls control array. |
pctrls | Points to a CTRLDATA array that defines controls. |
Definition at line 338 of file scrollview.h.
#define SVM_ADDITEM 0xF300 |
Adds an item in the scrollview.
&svii | Pointer to a scrollview item information structure. |
phsvi | Pointer to a HSVITEM var, used to store the item handle returned. |
Definition at line 276 of file scrollview.h.
#define SVM_CHOOSEITEM 0xF321 |
Makes an item selected and visible in the scrollview item.
nItem | Item index. Be useful when hsvi is zero. |
hsvi | Item handle. |
Definition at line 742 of file scrollview.h.
#define SVM_DELITEM 0xF301 |
Deletes an item from the scrollview.
nItem | Scrollview item index to delete. If hsvi is not zero, nItem will be ignored. |
hsvi | Scrollview item handle to delete. |
Definition at line 297 of file scrollview.h.
#define SVM_GETBOTTOMMARGIN 0xF315 |
Gets the bottom margin value of the scrollview.
Definition at line 532 of file scrollview.h.
#define SVM_GETCONTENTX 0xF31b |
Gets the content x offset in the viewport.
Definition at line 629 of file scrollview.h.
#define SVM_GETCONTENTY 0xF31c |
Gets the content y offset in the viewport.
Definition at line 644 of file scrollview.h.
#define SVM_GETCONTHEIGHT 0xF319 |
Gets the height of the content area.
Definition at line 592 of file scrollview.h.
#define SVM_GETCONTWIDTH 0xF318 |
Gets the width of the content area.
Definition at line 577 of file scrollview.h.
#define SVM_GETCTRL 0xF308 |
Gets the control handle in the scrollview window by control id.
id | Control id. |
Definition at line 396 of file scrollview.h.
#define SVM_GETCURSEL 0xF31e |
Gets the index of the current hilighted scrollview item.
An application sends an this message to a scrollview window to get the index of the currently selected item, if there is one, in a single-selection scrollview. For multiple-selection case, appliction send this message to a scrollview to get the index of the current highlighted item.
Definition at line 683 of file scrollview.h.
#define SVM_GETFIRSTVISIBLEITEM 0xF337 |
Gets the index of the first visible item.
Definition at line 1088 of file scrollview.h.
#define SVM_GETFOCUSCHILD 0xF32a |
Gets the focus control in the scrollview.
Definition at line 872 of file scrollview.h.
#define SVM_GETHSCROLLPAGEVAL 0xF32d |
Gets the horizontal page scroll value.
Definition at line 917 of file scrollview.h.
#define SVM_GETHSCROLLVAL 0xF32b |
Gets the horizontal scroll value.
Definition at line 887 of file scrollview.h.
#define SVM_GETITEMADDDATA 0xF333 |
Gets the additional data of the item.
nItem | Scrollview item index to access. If hsvi is not zero, nItem will be ignored. |
hsvi | Scrollview item handle to access. |
Definition at line 1016 of file scrollview.h.
#define SVM_GETITEMCOUNT 0xF332 |
Gets the total number of the items.
Definition at line 995 of file scrollview.h.
#define SVM_GETLEFTMARGIN 0xF312 |
Gets the left margin value of the scrollview.
Definition at line 487 of file scrollview.h.
#define SVM_GETMARGINS 0xF30b |
Gets the margin values of the scrollview.
Application should use a RECT structure to get left, top, right, and bottom margins.
rcMargin | A RECT for storing 4 margin values. |
Definition at line 451 of file scrollview.h.
#define SVM_GETRIGHTMARGIN 0xF314 |
Gets the right margin value of the scrollview.
Definition at line 517 of file scrollview.h.
#define SVM_GETTOPMARGIN 0xF313 |
Gets the top margin value of the scrollview.
Definition at line 502 of file scrollview.h.
#define SVM_GETVISIBLEHEIGHT 0xF317 |
Gets the height of the visible content area.
Definition at line 562 of file scrollview.h.
#define SVM_GETVISIBLEWIDTH 0xF316 |
Gets the width of the visible content area.
Definition at line 547 of file scrollview.h.
#define SVM_GETVSCROLLPAGEVAL 0xF32e |
Gets the vertical page scroll value.
Definition at line 932 of file scrollview.h.
#define SVM_GETVSCROLLVAL 0xF32c |
Gets the vertical scroll value.
Definition at line 902 of file scrollview.h.
#define SVM_MAKEPOSVISIBLE 0xF328 |
Makes a position in the content area visible.
pos_x | X coordinate of the position to be made visible |
pos_y | Y coordinate of the position to be made visible |
Definition at line 839 of file scrollview.h.
#define SVM_REFRESHITEM 0xF335 |
Refresh the item.
nitem | Item index. If hsvi is not zero, nItem will be ignored. |
hsvi | Item handle. |
Definition at line 1056 of file scrollview.h.
#define SVM_RESETCONTENT 0xF309 |
Clears all the controls and the items added to the scrollview window.
Definition at line 411 of file scrollview.h.
#define SVM_SELECTITEM 0xF31f |
Selects or unselects an item in the scrollview item.
nItem | Index of the item to select or unselect. |
bSel | To select or unselect. |
Definition at line 702 of file scrollview.h.
#define SVM_SETCONTAINERPROC 0xF329 |
Sets the window procedure of the container window in the scrollview.
pfn | New container procedure function. |
Definition at line 857 of file scrollview.h.
#define SVM_SETCONTHEIGHT 0xF307 |
Sets the scrollview content area (scrollable area) height.
Scrollable area of a scrolled window is always larger than the visible area.
cont_h | Scrollview content height. |
Definition at line 378 of file scrollview.h.
#define SVM_SETCONTPOS 0xF31d |
Sets the content offset position in the viewport.
cont_x | New content x offset |
cont_y | New content y offset |
Definition at line 663 of file scrollview.h.
#define SVM_SETCONTRANGE 0xF31a |
Sets the width and height of the content area.
If you want to change width and height, give a value large than zero. If you give -1, this value will remain untouched.
cont_w | Width of the content area. |
cont_h | Height of the content area. |
Definition at line 614 of file scrollview.h.
#define SVM_SETCONTWIDTH 0xF306 |
Sets the scrollview content area (scrollable area) width.
Scrollable area of a scrolled window is always larger than the visible area.
cont_w | Scrollview content width. |
Definition at line 358 of file scrollview.h.
#define SVM_SETCURSEL 0xF322 |
Makes an item as the current hilighted item in the scrollview item.
nitem | Item index. |
bVisible | If bVisible is TRUE, this item wille be made visible. |
Definition at line 762 of file scrollview.h.
#define SVM_SETITEMADDDATA 0xF334 |
Sets the additional data of the item.
nitem | Item index. |
addData | Additional data |
Definition at line 1036 of file scrollview.h.
#define SVM_SETITEMCMP 0xF327 |
Sets the item compare function.
pfn | New item compare function |
Definition at line 822 of file scrollview.h.
#define SVM_SETITEMDESTROY 0xF324 |
Sets the destroy operation of the items in the scrollview.
Normally item operations should be set before adding items. The destroy callback function will be called when deleting an item
pfn | Item destroy operation function |
Definition at line 804 of file scrollview.h.
#define SVM_SETITEMDRAW 0xF302 |
Sets the drawing operation of an item.
Scrollview item drawing function will be called when doing with MSG_PAINT message, scrollview window should define this function if it want to draw an customed item.
pfn | Scrollview item drawing function. |
Definition at line 318 of file scrollview.h.
#define SVM_SETITEMHEIGHT 0xF336 |
Sets the height of an item.
nitem | Item index. |
height | New height of the item |
Definition at line 1076 of file scrollview.h.
#define SVM_SETITEMINIT 0xF323 |
Sets the init operation of the items in the scrollview.
Normally item operations should be set before adding items. The initialization callback function will be called when adding an item.
pfn | Item init operation function |
Definition at line 783 of file scrollview.h.
#define SVM_SETITEMOPS 0xF30a |
Sets the item operations of the items in the scrollview.
Normally item operations should be set before adding items.
iop | Points to a SVITEMOPS structure that defines item operations |
Definition at line 431 of file scrollview.h.
#define SVM_SETMARGINS 0xF311 |
Sets the margin values of the scrollview.
Application should use a RECT structure to give left, top, right, and bottom margins. If you want to change a margin value, give a value large than zero, or else -1.
rcMargin | A RECT Containing 4 margin values. |
Definition at line 472 of file scrollview.h.
#define SVM_SETSCROLLPAGEVAL 0xF330 |
Sets the horizontal and vertical page value.
hval | New horizontal page value. |
vval | New vertical page value. |
Definition at line 970 of file scrollview.h.
#define SVM_SETSCROLLVAL 0xF32f |
Sets the horizontal and vertical scroll value.
hval | New horizontal scroll value. |
vval | New vertical scroll value. |
Definition at line 951 of file scrollview.h.
#define SVM_SHOWITEM 0xF320 |
Makes an item visible in the scrollview item.
nItem | Item index. Be useful when hsvi is zero. |
hsvi | Item handle. |
Definition at line 722 of file scrollview.h.
#define SVM_SORTITEMS 0xF331 |
Sorts the items according to a specified comparision function.
pfn | Comparision function. |
Definition at line 987 of file scrollview.h.