MiniGUI API Reference (MiniGUI-Processes)  v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Macros
Notification codes of treeview control

Macros

#define TVN_ERRSPACE   255
 Indicates that memory is not enough. More...
 
#define TVN_SELCHANGE   1
 Notifies the change of selection. More...
 
#define TVN_DBLCLK   2
 Notifies the user has double-clicked an item. More...
 
#define TVN_SETFOCUS   4
 Indicates gain of input focus. More...
 
#define TVN_KILLFOCUS   5
 Indicates loss of input focus. More...
 
#define TVN_CLICKED   7
 Indicates the user has clicked an item. More...
 
#define TVN_ENTER   8
 Indicates the user has pressed the ENTER key. More...
 
#define TVN_FOLDED   9
 Indicates a sub-tree has folded. More...
 
#define TVN_UNFOLDED   10
 Indicates a sub-tree has unfolded. More...
 

Detailed Description

Macro Definition Documentation

◆ TVN_CLICKED

#define TVN_CLICKED   7

Indicates the user has clicked an item.

Definition at line 523 of file treeview.h.

◆ TVN_DBLCLK

#define TVN_DBLCLK   2

Notifies the user has double-clicked an item.

Definition at line 499 of file treeview.h.

◆ TVN_ENTER

#define TVN_ENTER   8

Indicates the user has pressed the ENTER key.

Definition at line 529 of file treeview.h.

◆ TVN_ERRSPACE

#define TVN_ERRSPACE   255

Indicates that memory is not enough.

A list box sends an TVN_ERRSPACE notification message to its parent window when it cannot allocate enough memory to complete the current operation.

Definition at line 487 of file treeview.h.

◆ TVN_FOLDED

#define TVN_FOLDED   9

Indicates a sub-tree has folded.

Note
This is an extended notification, the control calls NotifyParentEx function to notify the parent, and passes the handle to the folded item through add_data argument of NotifyParentEx function. You should define and set Notificaton Callback Procedure for the control in order to get the handle to the folded item.
See also
SetNotificationCallback, NotifyParentEx

Definition at line 543 of file treeview.h.

◆ TVN_KILLFOCUS

#define TVN_KILLFOCUS   5

Indicates loss of input focus.

A TreeView control sends an TVN_KILLFOCUS notification message to its parent window when the list box loses the input focus.

Definition at line 517 of file treeview.h.

◆ TVN_SELCHANGE

#define TVN_SELCHANGE   1

Notifies the change of selection.

Definition at line 493 of file treeview.h.

◆ TVN_SETFOCUS

#define TVN_SETFOCUS   4

Indicates gain of input focus.

A TreeView control sends an TVN_SETFOCUS notification message to its parent window when the list box gains the input focus.

Definition at line 508 of file treeview.h.

◆ TVN_UNFOLDED

#define TVN_UNFOLDED   10

Indicates a sub-tree has unfolded.

Note
This is an extended notification, the control calls NotifyParentEx function to nofity the parent, and passes the handle to the unfolded item through add_data argument of NotifyParentEx function. You should define and set Notificaton Callback Procedure for the control in order to get the handle to the unfolded item.
See also
SetNotificationCallback, NotifyParentEx

Definition at line 557 of file treeview.h.