MiniGUI API Reference (MiniGUI-Standalone)  v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Modules | Data Structures | Macros | Typedefs
ListView control

Modules

 Styles of listview control
 
 Messages of ListView control
 
 Notification code of ListView control
 

Data Structures

struct  _LVITEM
 
struct  _LVSUBITEM
 
struct  _LVSORTDATA
 
struct  _LVCUSTOMDRAWFUNCS
 
struct  _LVCOLUMN
 
struct  _LVFINDINFO
 
struct  _LVNM_NORMAL
 

Macros

#define CTRL_LISTVIEW   ("ListView")
 The class name of listview control. More...
 
#define LV_OKAY   0
 
#define LV_ERR   (-1)
 
#define LV_ERRSPACE   (-2)
 
#define LVIF_FOLD   0x0001L
 listview item flags, is used inside minigui. More...
 
#define LVFLAG_BITMAP   0x0001
 
#define LVFLAG_ICON   0x0002
 
#define LVCF_LEFTALIGN   0x0000
 
#define LVCF_RIGHTALIGN   0x0001
 
#define LVCF_CENTERALIGN   0x0002
 
#define LVCF_TREEVIEW   0x0004
 
#define LVHF_LEFTALIGN   0x0000
 
#define LVHF_RIGHTALIGN   0x0004
 
#define LVHF_CENTERALIGN   0x0008
 
#define LVFF_TEXT   0x0001
 
#define LVFF_ADDDATA   0x0002
 

Typedefs

typedef GHANDLE HLVITEM
 List view item handle. More...
 
typedef struct _LVITEM LVITEM
 
typedef LVITEMPLVITEM
 
typedef struct _LVSUBITEM LVSUBITEM
 
typedef LVSUBITEMPLVSUBITEM
 
typedef struct _LVSORTDATA LVSORTDATA
 
typedef LVSORTDATAPLVSORTDATA
 
typedef int(* PFNLVCOMPARE) (HLVITEM nItem1, HLVITEM nItem2, PLVSORTDATA sortData)
 
typedef void(* PFN_LVHDR_BKDRAWFUNC) (HWND hWnd, HLVHDR hlvhdr, HDC hdc, RECT *rcDraw)
 
typedef void(* PFN_LVHDR_ITEMDRAWFUNC) (HWND hWnd, int idx, HDC hdc, RECT *rcDraw)
 
typedef struct _LVCUSTOMDRAWFUNCS LVCUSTOMDRAWFUNCS
 
typedef struct _LVCOLUMN LVCOLUMN
 
typedef LVCOLUMNPLVCOLUMN
 
typedef struct _LVFINDINFO LVFINDINFO
 
typedef LVFINDINFOPLVFINDINFO
 
typedef struct _LVNM_NORMAL LVNM_NORMAL
 
typedef LVNM_NORMALPLVNM_NORMAL
 
typedef LVNM_NORMAL LVNM_KEYDOWN
 
typedef LVNM_KEYDOWNPLVNM_KEYDOWN
 
typedef LVNM_NORMAL LVNM_HEADRDOWN
 
typedef LVNM_HEADRDOWNPLVNM_HEADRDOWN
 
typedef LVNM_NORMAL LVNM_HEADRUP
 
typedef LVNM_HEADRUPPLVNM_HEADUP
 
typedef LVNM_NORMAL LVNM_ITEMRDOWN
 
typedef LVNM_ITEMRDOWNPLVNM_ITEMRDOWN
 
typedef LVNM_NORMAL LVNM_ITEMRUP
 
typedef LVNM_ITEMRUPPLVNM_ITEMRUP
 

Detailed Description

Macro Definition Documentation

◆ CTRL_LISTVIEW

#define CTRL_LISTVIEW   ("ListView")

The class name of listview control.

Definition at line 84 of file listview.h.

◆ LV_ERR

#define LV_ERR   (-1)

Listview return value

Definition at line 89 of file listview.h.

◆ LV_ERRSPACE

#define LV_ERRSPACE   (-2)

Listview return value

Definition at line 91 of file listview.h.

◆ LV_OKAY

#define LV_OKAY   0

Listview return value

Definition at line 87 of file listview.h.

◆ LVCF_CENTERALIGN

#define LVCF_CENTERALIGN   0x0002

Column text center align

Definition at line 213 of file listview.h.

◆ LVCF_LEFTALIGN

#define LVCF_LEFTALIGN   0x0000

Column flags Column text left align, default

Definition at line 209 of file listview.h.

◆ LVCF_RIGHTALIGN

#define LVCF_RIGHTALIGN   0x0001

Column text right align

Definition at line 211 of file listview.h.

◆ LVCF_TREEVIEW

#define LVCF_TREEVIEW   0x0004

Column treeview style

Definition at line 215 of file listview.h.

◆ LVFF_ADDDATA

#define LVFF_ADDDATA   0x0002

Search by addtional data

Definition at line 253 of file listview.h.

◆ LVFF_TEXT

#define LVFF_TEXT   0x0001

Listview search flags Search by text

Definition at line 251 of file listview.h.

◆ LVFLAG_BITMAP

#define LVFLAG_BITMAP   0x0001

Listview bitmap flags

Definition at line 137 of file listview.h.

◆ LVFLAG_ICON

#define LVFLAG_ICON   0x0002

Listview icon flags

Definition at line 139 of file listview.h.

◆ LVHF_CENTERALIGN

#define LVHF_CENTERALIGN   0x0008

Header text center align

Definition at line 223 of file listview.h.

◆ LVHF_LEFTALIGN

#define LVHF_LEFTALIGN   0x0000

Header flags Header text left align, default

Definition at line 219 of file listview.h.

◆ LVHF_RIGHTALIGN

#define LVHF_RIGHTALIGN   0x0004

Header text right align

Definition at line 221 of file listview.h.

◆ LVIF_FOLD

#define LVIF_FOLD   0x0001L

listview item flags, is used inside minigui.

Definition at line 103 of file listview.h.

Typedef Documentation

◆ HLVITEM

typedef GHANDLE HLVITEM

List view item handle.

Definition at line 97 of file listview.h.

◆ LVCOLUMN

typedef struct _LVCOLUMN LVCOLUMN

Struct of the listview column info, contains information about a column. This structure is used for creating or retrieving a column.

◆ LVCUSTOMDRAWFUNCS

Contains function pointers for customized drawing

◆ LVFINDINFO

typedef struct _LVFINDINFO LVFINDINFO

Contains information for finding a certain item info

◆ LVITEM

typedef struct _LVITEM LVITEM

Structure of the listview item info, contains information about an item. This structure is used for creating or retrieving an item.

◆ LVNM_HEADRDOWN

Contains listview notification information when mouse down on the header

Definition at line 302 of file listview.h.

◆ LVNM_HEADRUP

Contains listview notification information when mouse up on the header

Definition at line 307 of file listview.h.

◆ LVNM_ITEMRDOWN

Contains listview notification information when mouse down on the item area

Definition at line 312 of file listview.h.

◆ LVNM_ITEMRUP

Contains listview notification information when mouse up on the item area

Definition at line 317 of file listview.h.

◆ LVNM_KEYDOWN

Keydown notification information

Definition at line 297 of file listview.h.

◆ LVNM_NORMAL

typedef struct _LVNM_NORMAL LVNM_NORMAL

Contains listview general notification information

◆ LVSORTDATA

typedef struct _LVSORTDATA LVSORTDATA

Contains information for sorting listview

◆ LVSUBITEM

typedef struct _LVSUBITEM LVSUBITEM

Struct of the listview subitem info, contains information about a subitem. This structure is used for creating or retrieving a subitem.

◆ PFN_LVHDR_BKDRAWFUNC

typedef void(* PFN_LVHDR_BKDRAWFUNC) (HWND hWnd, HLVHDR hlvhdr, HDC hdc, RECT *rcDraw)

Type of listview header background drawing function

Definition at line 192 of file listview.h.

◆ PFN_LVHDR_ITEMDRAWFUNC

typedef void(* PFN_LVHDR_ITEMDRAWFUNC) (HWND hWnd, int idx, HDC hdc, RECT *rcDraw)

Type of listview header item drawing function

Definition at line 194 of file listview.h.

◆ PFNLVCOMPARE

typedef int(* PFNLVCOMPARE) (HLVITEM nItem1, HLVITEM nItem2, PLVSORTDATA sortData)

Type of listview comparision fuction

Definition at line 185 of file listview.h.

◆ PLVCOLUMN

typedef LVCOLUMN* PLVCOLUMN

Data type of pointer to a LVCOLUMN

Definition at line 247 of file listview.h.

◆ PLVFINDINFO

Data type of pointer to a LVFINDINFO

Definition at line 283 of file listview.h.

◆ PLVITEM

typedef LVITEM* PLVITEM

Data type of the pointer to a LVITEM

Definition at line 134 of file listview.h.

◆ PLVNM_HEADRDOWN

Data type of pointer to a LVNM_HEADRDOWN

Definition at line 304 of file listview.h.

◆ PLVNM_HEADUP

Data type of pointer to a LVNM_HEADRUP

Definition at line 309 of file listview.h.

◆ PLVNM_ITEMRDOWN

Data type of pointer to a LVNM_ITEMRDOWN

Definition at line 314 of file listview.h.

◆ PLVNM_ITEMRUP

Data type of pointer to a LVNM_ITEMRUP

Definition at line 319 of file listview.h.

◆ PLVNM_KEYDOWN

Data type of pointer to a LVNM_KEYDOWN

Definition at line 299 of file listview.h.

◆ PLVNM_NORMAL

Data type of pointer to a LVNM_NORMAL

Definition at line 294 of file listview.h.

◆ PLVSORTDATA

Data type of pointer to a LVSORTDATA

Definition at line 182 of file listview.h.

◆ PLVSUBITEM

Data type of the pointer to a LVSUBITEM

Definition at line 169 of file listview.h.