MiniGUI API Reference (MiniGUI-Processes)  v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
treeview.h
Go to the documentation of this file.
1 //
3 // IMPORTANT NOTICE
4 //
5 // The following open source license statement does not apply to any
6 // entity in the Exception List published by FMSoft.
7 //
8 // For more information, please visit:
9 //
10 // https://www.fmsoft.cn/exception-list
11 //
13 
55 /*
56  * $Id: treeview.h 13674 2010-12-06 06:45:01Z wanzheng $
57  *
58  * MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
59  * pSOS, ThreadX, NuCleus, OSE, and Win32.
60  */
61 
62 #ifndef EXT_TREEVIEW_H
63 #define EXT_TREEVIEW_H
64 
65 
66 #ifdef __cplusplus
67 extern "C" {
68 #endif
69 
95 #define CTRL_TREEVIEW ("TreeView")
96 #define CTRL_TREEVIEW_RDR ("TreeView_rdr")
97 
98 #define TVIF_ROOT 0x0001L
99 #define TVIF_FOLD 0x0004L
100 #define TVIF_SELECTED 0x0008L
101 
103 typedef struct _TVITEMINFO
104 {
106  char *text;
121 
126 
129 } TVITEMINFO;
130 
136 
147 #define TVS_NOTIFY 0x0001L
148 
153 #define TVS_WITHICON 0x0002L
154 
165 #define TVS_ICONFORSELECT 0x0000L
166 
167 /* Internally used style */
168 #define TVS_FOCUS 0x0008L
169 
174 #define TVS_SORT 0x0010L
175 
202 #define TVM_ADDITEM 0xF110
203 
208 #define TVM_INSERTITEM 0xF111
209 
223 #define TVM_GETROOT 0xF112
224 
239 #define TVM_DELTREE 0xF113
240 
263 #define TVM_SEARCHITEM 0xF114
264 
284 #define TVM_FINDCHILD 0xF115
285 
299 #define TVM_GETSELITEM 0xF116
300 
317 #define TVM_SETSELITEM 0xF117
318 
336 #define TVM_GETITEMTEXTLEN 0xF118
337 
357 #define TVM_GETITEMTEXT 0xF119
358 
382 #define TVM_GETITEMINFO 0xF11A
383 
403 #define TVM_SETITEMINFO 0xF11B
404 
405 #define TVIR_PARENT 1
406 #define TVIR_FIRSTCHILD 2
407 #define TVIR_NEXTSIBLING 3
408 #define TVIR_PREVSIBLING 4
409 
438 #define TVM_GETRELATEDITEM 0xF11C
439 
469 #define TVM_SETSTRCMPFUNC 0xF11D
470 
471 #define TVM_MSGMAX 0xF120
472 
487 #define TVN_ERRSPACE 255
488 
493 #define TVN_SELCHANGE 1
494 
499 #define TVN_DBLCLK 2
500 
508 #define TVN_SETFOCUS 4
509 
517 #define TVN_KILLFOCUS 5
518 
523 #define TVN_CLICKED 7
524 
529 #define TVN_ENTER 8
530 
543 #define TVN_FOLDED 9
544 
557 #define TVN_UNFOLDED 10
558 
565 #ifdef __cplusplus
566 }
567 #endif
568 
569 #endif /* EXT_TREEVIEW_H */
570 
_TVITEMINFO::hIconUnfold
HICON hIconUnfold
Definition: treeview.h:125
DWORD
DWORD_PTR DWORD
A unsigned long type definition for pointer precision.
Definition: common.h:604
_TVITEMINFO::dwAddData
DWORD dwAddData
Definition: treeview.h:128
HICON
GHANDLE HICON
Handle to icon.
Definition: common.h:427
_TVITEMINFO
Definition: treeview.h:103
_TVITEMINFO::text
char * text
Definition: treeview.h:106
_TVITEMINFO::dwFlags
DWORD dwFlags
Definition: treeview.h:120
PTVITEMINFO
TVITEMINFO * PTVITEMINFO
Data type of the pointer to a TVITEMINFO.
Definition: treeview.h:135
_TVITEMINFO::hIconFold
HICON hIconFold
Definition: treeview.h:123
TVITEMINFO
struct _TVITEMINFO TVITEMINFO