MiniGUI API Reference (MiniGUI-Standalone)  v3.2.0
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

#define CTRL_LISTVIEW   ("ListView")

The class name of listview control.

Definition at line 72 of file listview.h.

#define LV_ERR   (-1)

Listview return value

Definition at line 77 of file listview.h.

#define LV_ERRSPACE   (-2)

Listview return value

Definition at line 79 of file listview.h.

#define LV_OKAY   0

Listview return value

Definition at line 75 of file listview.h.

#define LVCF_CENTERALIGN   0x0002

Column text center align

Definition at line 201 of file listview.h.

#define LVCF_LEFTALIGN   0x0000

Column flags Column text left align, default

Definition at line 197 of file listview.h.

#define LVCF_RIGHTALIGN   0x0001

Column text right align

Definition at line 199 of file listview.h.

#define LVCF_TREEVIEW   0x0004

Column treeview style

Definition at line 203 of file listview.h.

#define LVFF_ADDDATA   0x0002

Search by addtional data

Definition at line 241 of file listview.h.

#define LVFF_TEXT   0x0001

Listview search flags Search by text

Definition at line 239 of file listview.h.

#define LVFLAG_BITMAP   0x0001

Listview bitmap flags

Definition at line 125 of file listview.h.

#define LVFLAG_ICON   0x0002

Listview icon flags

Definition at line 127 of file listview.h.

#define LVHF_CENTERALIGN   0x0008

Header text center align

Definition at line 211 of file listview.h.

#define LVHF_LEFTALIGN   0x0000

Header flags Header text left align, default

Definition at line 207 of file listview.h.

#define LVHF_RIGHTALIGN   0x0004

Header text right align

Definition at line 209 of file listview.h.

#define LVIF_FOLD   0x0001L

listview item flags, is used inside minigui.

Definition at line 91 of file listview.h.

Typedef Documentation

typedef GHANDLE HLVITEM

List view item handle.

Definition at line 85 of file listview.h.

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.

Contains function pointers for customized drawing

typedef struct _LVFINDINFO LVFINDINFO

Contains information for finding a certain item info

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.

Contains listview notification information when mouse down on the header

Definition at line 290 of file listview.h.

Contains listview notification information when mouse up on the header

Definition at line 295 of file listview.h.

Contains listview notification information when mouse down on the item area

Definition at line 300 of file listview.h.

Contains listview notification information when mouse up on the item area

Definition at line 305 of file listview.h.

Keydown notification information

Definition at line 285 of file listview.h.

typedef struct _LVNM_NORMAL LVNM_NORMAL

Contains listview general notification information

typedef struct _LVSORTDATA LVSORTDATA

Contains information for sorting listview

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.

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

Type of listview header background drawing function

Definition at line 180 of file listview.h.

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

Type of listview header item drawing function

Definition at line 182 of file listview.h.

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

Type of listview comparision fuction

Definition at line 173 of file listview.h.

typedef LVCOLUMN* PLVCOLUMN

Data type of pointer to a LVCOLUMN

Definition at line 235 of file listview.h.

Data type of pointer to a LVFINDINFO

Definition at line 271 of file listview.h.

typedef LVITEM* PLVITEM

Data type of the pointer to a LVITEM

Definition at line 122 of file listview.h.

Data type of pointer to a LVNM_HEADRDOWN

Definition at line 292 of file listview.h.

Data type of pointer to a LVNM_HEADRUP

Definition at line 297 of file listview.h.

Data type of pointer to a LVNM_ITEMRDOWN

Definition at line 302 of file listview.h.

Data type of pointer to a LVNM_ITEMRUP

Definition at line 307 of file listview.h.

Data type of pointer to a LVNM_KEYDOWN

Definition at line 287 of file listview.h.

Data type of pointer to a LVNM_NORMAL

Definition at line 282 of file listview.h.

Data type of pointer to a LVSORTDATA

Definition at line 170 of file listview.h.

Data type of the pointer to a LVSUBITEM

Definition at line 157 of file listview.h.