MiniGUI API Reference (MiniGUI-Processes)
v3.2.0
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 |
Sets 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 |
Sets the text color of a subitem. More... | |
#define | LVM_FINDITEM 0xF118 |
Searchs a item. More... | |
#define | LVM_GETSUBITEMTEXT 0xF119 |
Retrieves the text of a listview subitem. More... | |
#define | LVM_GETITEMCOUNT 0xF11A |
Gets the number of all the items(rows) in a listview. More... | |
#define | LVM_GETCOLUMNCOUNT 0xF11B |
Gets the number of all the columns in listview. More... | |
#define | LVM_GETSELECTEDITEM 0xF11C |
Gets 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 |
Gets the text length of the subitem. More... | |
#define | LVM_SETCOLUMN 0xF122 |
Sets the attributes of a list view column. More... | |
#define | LVM_SETSUBITEMTEXT 0xF123 |
Sets the text of a subitem. More... | |
#define | LVM_SETSUBITEM 0xF124 |
Sets the attributes of a subitem. More... | |
#define | LVM_GETCOLUMN 0xF125 |
Retrieves the information about a listview column. More... | |
#define | LVM_GETCOLUMNWIDTH 0xF126 |
Retrieves the width of a listview column. More... | |
#define | LVM_GETITEM 0xF127 |
Retrieves the item's attributes. More... | |
#define | LVM_GETITEMSTATE 0xF128 |
Retrieves the state of a listview item. More... | |
#define | LVM_GETSELECTEDCOLUMN 0xF129 |
Retrieves the index of the currently selected column of a listview. More... | |
#define | LVM_GETSELECTEDCOUNT 0xF130 |
Retrieves the number of the selected items in a listview. More... | |
#define | LVM_GETTOPVISIBLE 0xF131 |
Retrieves 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 |
Gets 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 |
Sets 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 |
Sets 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 435 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 394 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 1075 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 479 of file listview.h.
#define LVM_COLSORT 0xF116 |
Sorts all subitems according to a certain column.
ncol | Index of the column. |
Definition at line 513 of file listview.h.
#define LVM_DELALLITEM 0xF11D |
Removes all the items in listview.
Definition at line 642 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 496 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 455 of file listview.h.
#define LVM_FILLSUBITEM 0xF111 |
Sets 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 418 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 556 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 1161 of file listview.h.
#define LVM_GETCOLUMN 0xF125 |
Retrieves 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 811 of file listview.h.
#define LVM_GETCOLUMNCOUNT 0xF11B |
Gets the number of all the columns in listview.
Definition at line 612 of file listview.h.
#define LVM_GETCOLUMNWIDTH 0xF126 |
Retrieves the width of a listview column.
nCol | Index of the column. |
Definition at line 829 of file listview.h.
#define LVM_GETITEM 0xF127 |
Retrieves 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 851 of file listview.h.
#define LVM_GETITEMADDDATA 0xF137 |
Gets 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 1029 of file listview.h.
#define LVM_GETITEMCOUNT 0xF11A |
Gets the number of all the items(rows) in a listview.
Definition at line 597 of file listview.h.
#define LVM_GETITEMSTATE 0xF128 |
Retrieves 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 872 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 1141 of file listview.h.
#define LVM_GETSELECTEDCOLUMN 0xF129 |
Retrieves the index of the currently selected column of a listview.
Definition at line 887 of file listview.h.
#define LVM_GETSELECTEDCOUNT 0xF130 |
Retrieves the number of the selected items in a listview.
Definition at line 902 of file listview.h.
#define LVM_GETSELECTEDITEM 0xF11C |
Gets the current selected item.
Definition at line 627 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 1197 of file listview.h.
#define LVM_GETSUBITEMLEN 0xF121 |
Gets 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 724 of file listview.h.
#define LVM_GETSUBITEMTEXT 0xF119 |
Retrieves 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 582 of file listview.h.
#define LVM_GETTOPVISIBLE 0xF131 |
Retrieves the index of the topmost visible item in a listview.
Definition at line 917 of file listview.h.
#define LVM_MODIFYHEAD 0xF11E |
Changes the title of a column.
pcol | Pointer to a LVCOLUMN struct. |
Definition at line 659 of file listview.h.
#define LVM_NULL 0xF132 |
reserved.
Definition at line 923 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 679 of file listview.h.
#define LVM_SETCOLUMN 0xF122 |
Sets the attributes of a list view column.
pcol | Points to a LVCOLUMN structure containing the new column information. |
Definition at line 742 of file listview.h.
#define LVM_SETCUSTOMDRAW 0xF143 |
Sets the customized drawing functions of listview.
myFuncs | Pointer to a customized drawing functions structure. |
Definition at line 1179 of file listview.h.
#define LVM_SETHEADHEIGHT 0xF136 |
Changes the height of the header.
height | The new height of the header. |
Definition at line 1002 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 1055 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 985 of file listview.h.
#define LVM_SETITEMSTATE 0xF133 |
reserved.
Definition at line 929 of file listview.h.
#define LVM_SETSTRCMPFUNC 0xF140 |
Sets 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 1106 of file listview.h.
#define LVM_SETSUBITEM 0xF124 |
Sets 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 790 of file listview.h.
#define LVM_SETSUBITEMCOLOR 0xF117 |
Sets 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 537 of file listview.h.
#define LVM_SETSUBITEMTEXT 0xF123 |
Sets 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 766 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 700 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 965 of file listview.h.