MiniGUI API Reference (MiniGUI-Processes)
v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
|
Macros | |
#define | LVM_ADDITEM 0xF110 |
Adds a item to listview, this item is also called a row. More... | |
#define | LVM_FILLSUBITEM 0xF111 |
Set the content of a subitem, indentified by rows and columns. More... | |
#define | LVM_ADDCOLUMN 0xF112 |
Adds a new column to listview, identified by column. More... | |
#define | LVM_DELITEM 0xF113 |
Deletes an item form listview. More... | |
#define | LVM_CLEARSUBITEM 0xF114 |
Clears the content of a subitem. More... | |
#define | LVM_DELCOLUMN 0xF115 |
Deletes a column from listview, all subitem in this column will be removed. More... | |
#define | LVM_COLSORT 0xF116 |
Sorts all subitems according to a certain column. More... | |
#define | LVM_SETSUBITEMCOLOR 0xF117 |
Set the text color of a subitem. More... | |
#define | LVM_FINDITEM 0xF118 |
Searchs a item. More... | |
#define | LVM_GETSUBITEMTEXT 0xF119 |
Retrieve the text of a listview subitem. More... | |
#define | LVM_GETITEMCOUNT 0xF11A |
Get the number of all the items(rows) in a listview. More... | |
#define | LVM_GETCOLUMNCOUNT 0xF11B |
Get the number of all the columns in listview. More... | |
#define | LVM_GETSELECTEDITEM 0xF11C |
Get the current selected item. More... | |
#define | LVM_DELALLITEM 0xF11D |
Removes all the items in listview. More... | |
#define | LVM_MODIFYHEAD 0xF11E |
Changes the title of a column. More... | |
#define | LVM_SELECTITEM 0xF11F |
Selects an item. More... | |
#define | LVM_SHOWITEM 0xF120 |
Makes the item is entirely visible in the list view. More... | |
#define | LVM_GETSUBITEMLEN 0xF121 |
Get the text length of the subitem. More... | |
#define | LVM_SETCOLUMN 0xF122 |
Set the attributes of a list view column. More... | |
#define | LVM_SETSUBITEMTEXT 0xF123 |
Set the text of a subitem. More... | |
#define | LVM_SETSUBITEM 0xF124 |
Set the attributes of a subitem. More... | |
#define | LVM_GETCOLUMN 0xF125 |
Retrieve the information about a listview column. More... | |
#define | LVM_GETCOLUMNWIDTH 0xF126 |
Retrieve the width of a listview column. More... | |
#define | LVM_GETITEM 0xF127 |
Retrieve the item's attributes. More... | |
#define | LVM_GETITEMSTATE 0xF128 |
Retrieve the state of a listview item. More... | |
#define | LVM_GETSELECTEDCOLUMN 0xF129 |
Retrieve the index of the currently selected column of a listview. More... | |
#define | LVM_GETSELECTEDCOUNT 0xF130 |
Retrieve the number of the selected items in a listview. More... | |
#define | LVM_GETTOPVISIBLE 0xF131 |
Retrieve the index of the topmost visible item in a listview. More... | |
#define | LVM_NULL 0xF132 |
reserved. More... | |
#define | LVM_SETITEMSTATE 0xF133 |
reserved. More... | |
#define | LVM_SORTITEMS 0xF134 |
Uses an application-defined comparision function to sort the items. More... | |
#define | LVM_SETITEMHEIGHT 0xF135 |
Changes the height of a item. More... | |
#define | LVM_SETHEADHEIGHT 0xF136 |
Changes the height of the header. More... | |
#define | LVM_GETITEMADDDATA 0xF137 |
Get the 32-bit data value associated with an item. More... | |
#define | LVM_SETITEMADDDATA 0xF138 |
Associates a 32-bit data value with an item. More... | |
#define | LVM_CHOOSEITEM 0xF139 |
Selects and shows an item. More... | |
#define | LVM_SETSTRCMPFUNC 0xF140 |
Set the STRCMP function used to sort items. More... | |
#define | LVM_GETRELATEDITEM 0xF141 |
Retrives related item of specific item. More... | |
#define | LVM_FOLDITEM 0xF142 |
Folds or unfolds an item. More... | |
#define | LVM_SETCUSTOMDRAW 0xF143 |
Set the customized drawing functions of listview. More... | |
#define | LVM_GETSELECTEDITEMRECT 0xF144 |
Get the selected item's Rectangle. More... | |
#define LVM_ADDCOLUMN 0xF112 |
Adds a new column to listview, identified by column.
p | Pointes to a LVCOLUMN structure that contains the information about the new column to be added. |
Definition at line 447 of file listview.h.
#define LVM_ADDITEM 0xF110 |
Adds a item to listview, this item is also called a row.
p | Pointes to a LVITEM structure that contains the information of the new item to be added. nItem member of the LVITEM struct speficied the item position in its parent item, beginning with zero. |
parent | Handle of the parent item into which the new item is about to insert. If parent equals zero, the parent item will be the root of listview. |
Definition at line 406 of file listview.h.
#define LVM_CHOOSEITEM 0xF139 |
Selects and shows an item.
nRow | If pi is zero, nRow specified the row index of the target item to choose. |
pi | Handle of the target item. |
Definition at line 1087 of file listview.h.
#define LVM_CLEARSUBITEM 0xF114 |
Clears the content of a subitem.
p | Pointes to a PLVSUBITEM structure that contains the information of the subitem to clear. If pi is not zero, nItem member of this struct has no meaning. |
pi | Handle of the target item. If pi equals zero, the row position of the target item is specified by nItem member of p structure. |
Definition at line 491 of file listview.h.
#define LVM_COLSORT 0xF116 |
Sorts all subitems according to a certain column.
ncol | Index of the column. |
Definition at line 525 of file listview.h.
#define LVM_DELALLITEM 0xF11D |
Removes all the items in listview.
Definition at line 654 of file listview.h.
#define LVM_DELCOLUMN 0xF115 |
Deletes a column from listview, all subitem in this column will be removed.
nCol | The index of the column to be removed. |
Definition at line 508 of file listview.h.
#define LVM_DELITEM 0xF113 |
Deletes an item form listview.
nRow | If pi is zero, nRow specified the row index of the target item to delete. |
pi | Handle of the target item. |
Definition at line 467 of file listview.h.
#define LVM_FILLSUBITEM 0xF111 |
Set the content of a subitem, indentified by rows and columns.
p | Pointes to a PLVSUBITEM structure that contains the information of the subitem to set. If pi is not zero, nItem member of this struct has no meaning. |
pi | Handle of the target item. If pi equals zero, the row position of the target item is specified by nItem member of p structure. |
Definition at line 430 of file listview.h.
#define LVM_FINDITEM 0xF118 |
Searchs a item.
parent | Handle of the item to search in. |
plvfi | Points to a LVFINDINFO structure containing information for searching. If parent is zero, iStart member of plvfi specifieds the start position on search. |
Definition at line 568 of file listview.h.
#define LVM_FOLDITEM 0xF142 |
Folds or unfolds an item.
bFold | To fold or to unfold, TRUE is to fold. |
pi | Handle of the target item. |
Definition at line 1173 of file listview.h.
#define LVM_GETCOLUMN 0xF125 |
Retrieve the information about a listview column.
nCol | Index of the column. |
pcol | Points to a LVCOLUMN structure for retrieving the information about the column. |
Definition at line 823 of file listview.h.
#define LVM_GETCOLUMNCOUNT 0xF11B |
Get the number of all the columns in listview.
Definition at line 624 of file listview.h.
#define LVM_GETCOLUMNWIDTH 0xF126 |
Retrieve the width of a listview column.
nCol | Index of the column. |
Definition at line 841 of file listview.h.
#define LVM_GETITEM 0xF127 |
Retrieve the item's attributes.
pi | Handle of the target item. |
item_info | Used for storing the target item's attributes. If pi is zero, nItem field of item_info specified the row index of the target item to get. |
Definition at line 863 of file listview.h.
#define LVM_GETITEMADDDATA 0xF137 |
Get the 32-bit data value associated with an item.
An application sends an LVM_GETITEMADDDATA message to a listview to get the 32-bit data value stored for the item with index of wParam; By default this is zero. An application must set the item data value by sending an LVM_SETITEMADDDATA message to the listview for this value to have meaning.
pi | Handle of the target item. |
index | The index of the specified item. If pi is not zero, use pi instead. |
Definition at line 1041 of file listview.h.
#define LVM_GETITEMCOUNT 0xF11A |
Get the number of all the items(rows) in a listview.
Definition at line 609 of file listview.h.
#define LVM_GETITEMSTATE 0xF128 |
Retrieve the state of a listview item.
pi | Handle of the target item. |
mask | Contains state information to retrieve, can be the combination of the following values. |
Definition at line 884 of file listview.h.
#define LVM_GETRELATEDITEM 0xF141 |
Retrives related item of specific item.
related | A integer which indicates the relationship between the item to retrive and the specified item, can be one of the following values:
|
item | The handle to the known item. |
Definition at line 1153 of file listview.h.
#define LVM_GETSELECTEDCOLUMN 0xF129 |
Retrieve the index of the currently selected column of a listview.
Definition at line 899 of file listview.h.
#define LVM_GETSELECTEDCOUNT 0xF130 |
Retrieve the number of the selected items in a listview.
Definition at line 914 of file listview.h.
#define LVM_GETSELECTEDITEM 0xF11C |
Get the current selected item.
Definition at line 639 of file listview.h.
#define LVM_GETSELECTEDITEMRECT 0xF144 |
Get the selected item's Rectangle.
prcItem | Pointer to a RECT which recieve the Item Rectangle |
Definition at line 1209 of file listview.h.
#define LVM_GETSUBITEMLEN 0xF121 |
Get the text length of the subitem.
p | Pointes to a PLVSUBITEM structure that contains the information of the subitem to set. If pi is not zero, nItem member of this struct has no meaning. |
pi | Handle of the target item. If pi equals zero, the row position of the target item is specified by nItem member of p structure. |
Definition at line 736 of file listview.h.
#define LVM_GETSUBITEMTEXT 0xF119 |
Retrieve the text of a listview subitem.
p | Pointes to a PLVSUBITEM structure that contains the information of the subitem to set. If pi is not zero, nItem member of this struct has no meaning. |
pi | Handle of the target item. If pi equals zero, the row position of the target item is specified by nItem member of p structure. |
Definition at line 594 of file listview.h.
#define LVM_GETTOPVISIBLE 0xF131 |
Retrieve the index of the topmost visible item in a listview.
Definition at line 929 of file listview.h.
#define LVM_MODIFYHEAD 0xF11E |
Changes the title of a column.
pcol | Pointer to a LVCOLUMN struct. |
Definition at line 671 of file listview.h.
#define LVM_NULL 0xF132 |
reserved.
Definition at line 935 of file listview.h.
#define LVM_SELECTITEM 0xF11F |
Selects an item.
nRow | If pi is zero, nRow specified the row index of the target item to select. |
pi | Handle of the target item. |
Definition at line 691 of file listview.h.
#define LVM_SETCOLUMN 0xF122 |
Set the attributes of a list view column.
pcol | Points to a LVCOLUMN structure containing the new column information. |
Definition at line 754 of file listview.h.
#define LVM_SETCUSTOMDRAW 0xF143 |
Set the customized drawing functions of listview.
myFuncs | Pointer to a customized drawing functions structure. |
Definition at line 1191 of file listview.h.
#define LVM_SETHEADHEIGHT 0xF136 |
Changes the height of the header.
height | The new height of the header. |
Definition at line 1014 of file listview.h.
#define LVM_SETITEMADDDATA 0xF138 |
Associates a 32-bit data value with an item.
An application sends an LVM_SETITEMADDDATA message to associate a 32-bit data value specified in the lParam parameter with an item in the listview.
pi | Handle of the target item. |
addData | The 32-bit data value which will associated with the item. |
Definition at line 1067 of file listview.h.
#define LVM_SETITEMHEIGHT 0xF135 |
Changes the height of a item.
height | The new height of the item. |
pi | Handle of the target item. |
Definition at line 997 of file listview.h.
#define LVM_SETITEMSTATE 0xF133 |
reserved.
Definition at line 941 of file listview.h.
#define LVM_SETSTRCMPFUNC 0xF140 |
Set the STRCMP function used to sort items.
An application sends a LVM_SETSTRCMPFUNC message to set a new STRCMP function to sort items in the Listview control.
Note that you should send this message before adding any item to the Listview control.
my_strcmp | Your own function to compare two strings. |
Definition at line 1118 of file listview.h.
#define LVM_SETSUBITEM 0xF124 |
Set the attributes of a subitem.
p | Pointes to a PLVSUBITEM structure that contains the information of the subitem to set. If pi is not zero, nItem member of this struct has no meaning. |
pi | Handle of the target item. If pi equals zero, the row position of the target item is specified by nItem member of p structure. |
Definition at line 802 of file listview.h.
#define LVM_SETSUBITEMCOLOR 0xF117 |
Set the text color of a subitem.
p | Pointes to a PLVSUBITEM structure that contains the information of the subitem to set. If pi is not zero, nItem member of this struct has no meaning. |
pi | Handle of the target item. If pi equals zero, the row position of the target item is specified by nItem member of p structure. |
Definition at line 549 of file listview.h.
#define LVM_SETSUBITEMTEXT 0xF123 |
Set the text of a subitem.
p | Pointes to a PLVSUBITEM structure that contains the information of the subitem to set. If pi is not zero, nItem member of this struct has no meaning. |
pi | Handle of the target item. If pi equals zero, the row position of the target item is specified by nItem member of p structure. |
Definition at line 778 of file listview.h.
#define LVM_SHOWITEM 0xF120 |
Makes the item is entirely visible in the list view.
nRow | If pi is zero, nRow specified the row index of the target item to show. |
pi | Handle of the target item. |
Definition at line 712 of file listview.h.
#define LVM_SORTITEMS 0xF134 |
Uses an application-defined comparision function to sort the items.
sortData | Sorting datas passed to the comparision function. |
pfnCompare | Pointer to the application-defined comparision function. The comparision function is called during the sort operation each time the relative order of the two items needs to be compared. |
The comparison function must return a negative value if the first item precedes the second, a positive value if the first item follows the second, or zero if the two items are equivalent.
The comparision function has the following form:
int CompareFunction(int nItem1, int nItem2, PLVSORTDATA sortData);
nItem1 is the handle of the first item, nItem2 is the handle of the second item, and sortData is passed to CompareFunction as the third parameter.
Definition at line 977 of file listview.h.