MiniGUI API Reference (MiniGUI-Threads)
v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
|
Macros | |
#define | TVM_ADDITEM 0xF110 |
Adds a new item in a treeview control. More... | |
#define | TVM_INSERTITEM 0xF111 |
The same as TVM_ADDITEM message. More... | |
#define | TVM_GETROOT 0xF112 |
Gets the root item of a treeview control. More... | |
#define | TVM_DELTREE 0xF113 |
Removes an item and its descendant items for the treeview control. More... | |
#define | TVM_SEARCHITEM 0xF114 |
Searches an item matching a specified string in a subtree rooted by a specific item. More... | |
#define | TVM_FINDCHILD 0xF115 |
Finds a child item matching a specified string in children of a specific item. More... | |
#define | TVM_GETSELITEM 0xF116 |
Gets the selected item. More... | |
#define | TVM_SETSELITEM 0xF117 |
Sets the selected item. More... | |
#define | TVM_GETITEMTEXTLEN 0xF118 |
Retrives the text length of the specified item in TreeView control. More... | |
#define | TVM_GETITEMTEXT 0xF119 |
Retrives the text of the specified item in TreeView control. More... | |
#define | TVM_GETITEMINFO 0xF11A |
Retrives the information of an item in TreeView control. More... | |
#define | TVM_SETITEMINFO 0xF11B |
Changes the information of an item. More... | |
#define | TVM_GETRELATEDITEM 0xF11C |
Retrives related item of specific item. More... | |
#define | TVM_SETSTRCMPFUNC 0xF11D |
Sets the STRCMP function used to sort items. More... | |
#define TVM_ADDITEM 0xF110 |
Adds a new item in a treeview control.
parent | Handle to the item who is the parent of the new item. |
newIteminfo | Pointer to the item info structure of the new item to be added. |
Definition at line 190 of file treeview.h.
#define TVM_DELTREE 0xF113 |
Removes an item and its descendant items for the treeview control.
Definition at line 227 of file treeview.h.
#define TVM_FINDCHILD 0xF115 |
Finds a child item matching a specified string in children of a specific item.
item | The handle to the item. Zero means the root item. |
string | The specified string. |
Definition at line 272 of file treeview.h.
#define TVM_GETITEMINFO 0xF11A |
Retrives the information of an item in TreeView control.
item | The handle to the item which we want to retrive. |
tvii | A pointer to a TVITEMINFO structure to receive the item information. Note that the text field of this structure should be large enough to get the item text. |
Definition at line 370 of file treeview.h.
#define TVM_GETITEMTEXT 0xF119 |
Retrives the text of the specified item in TreeView control.
item | The handle to the item which we want to retrive. |
buffer | The pointer to a buffer to save the text of the item. |
Definition at line 345 of file treeview.h.
#define TVM_GETITEMTEXTLEN 0xF118 |
Retrives the text length of the specified item in TreeView control.
item | The handle to the item which we want to retrive. |
Definition at line 324 of file treeview.h.
#define TVM_GETRELATEDITEM 0xF11C |
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 426 of file treeview.h.
#define TVM_GETROOT 0xF112 |
Gets the root item of a treeview control.
Definition at line 211 of file treeview.h.
#define TVM_GETSELITEM 0xF116 |
Gets the selected item.
Definition at line 287 of file treeview.h.
#define TVM_INSERTITEM 0xF111 |
The same as TVM_ADDITEM message.
Definition at line 196 of file treeview.h.
#define TVM_SEARCHITEM 0xF114 |
Searches an item matching a specified string in a subtree rooted by a specific item.
found | The handle to the item which is the root item of the subtree. Zero means the root item. |
string | The specified string. |
Definition at line 251 of file treeview.h.
#define TVM_SETITEMINFO 0xF11B |
Changes the information of an item.
item | The handle of the item. |
newText | Pointer to a TVITEMINFO structure which include the new information of the item. |
Definition at line 391 of file treeview.h.
#define TVM_SETSELITEM 0xF117 |
Sets the selected item.
item | The handle to candicate item. |
Definition at line 305 of file treeview.h.
#define TVM_SETSTRCMPFUNC 0xF11D |
Sets the STRCMP function used to sort items.
An application sends a TVM_SETSTRCMPFUNC message to set a new STRCMP function to sort items in the TreeView control.
Note that you should send this message before adding any item to the TreeView control.
my_strcmp | Your own function to compare two strings. |
Definition at line 457 of file treeview.h.