listview.h File Reference
Go to the source code of this file.
Data Structures
Defines
- #define CTRL_LISTVIEW ("ListView")
- The class name of listview control.
- #define LV_OKAY 0
- #define LV_ERR (-1)
- #define LV_ERRSPACE (-2)
- #define LVIF_FOLD 0x0001L
- listview item flags, is used inside minigui.
- #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
- #define LVS_UPNOTIFY 0x0001L
- Notifies the parent window when mouse is up (default is down).
- #define LVS_SORT 0x0002L
- Sorts strings automatically.
- #define LVS_MULTIPLESEL 0x0008L
- Causes the listview to allow the user to select multiple items.
- #define LVS_CHECKBOX 0x1000L
- Displays a check box in an item.
- #define LVS_AUTOCHECK 0x2000L
- If the list view has LVS_CHECKBOX style, this style tell the list view to auto-switch the check box between checked or un-checked when the user click the check mark box of an item.
- #define LVS_AUTOCHECKBOX (LVS_CHECKBOX | LVS_AUTOCHECK)
- If the list view has LVS_AUTOCHECKBOX style, this style tell the list view use LVS_CHECKBOX and LVS_AUTOCHECK style.
- #define LVS_TREEVIEW 0x4000L
- Uses listview in a treeview style.
- #define LVM_ADDITEM 0xF110
- Adds a item to listview, this item is also called a row.
- #define LVM_FILLSUBITEM 0xF111
- Sets the content of a subitem, indentified by rows and columns.
- #define LVM_ADDCOLUMN 0xF112
- Adds a new column to listview, identified by column.
- #define LVM_DELITEM 0xF113
- Deletes an item form listview.
- #define LVM_CLEARSUBITEM 0xF114
- Clears the content of a subitem.
- #define LVM_DELCOLUMN 0xF115
- Deletes a column from listview, all subitem in this column will be removed.
- #define LVM_COLSORT 0xF116
- Sorts all subitems according to a certain column.
- #define LVM_SETSUBITEMCOLOR 0xF117
- Sets the text color of a subitem.
- #define LVM_FINDITEM 0xF118
- Searchs a item.
- #define LVM_GETSUBITEMTEXT 0xF119
- Retrieves the text of a listview subitem.
- #define LVM_GETITEMCOUNT 0xF11A
- Gets the number of all the items(rows) in a listview.
- #define LVM_GETCOLUMNCOUNT 0xF11B
- Gets the number of all the columns in listview.
- #define LVM_GETSELECTEDITEM 0xF11C
- Gets the current selected item.
- #define LVM_DELALLITEM 0xF11D
- Removes all the items in listview.
- #define LVM_MODIFYHEAD 0xF11E
- Changes the title of a column.
- #define LVM_SELECTITEM 0xF11F
- Selects an item.
- #define LVM_SHOWITEM 0xF120
- Makes the item is entirely visible in the list view.
- #define LVM_GETSUBITEMLEN 0xF121
- Gets the text length of the subitem.
- #define LVM_SETCOLUMN 0xF122
- Sets the attributes of a list view column.
- #define LVM_SETSUBITEMTEXT 0xF123
- Sets the text of a subitem.
- #define LVM_SETSUBITEM 0xF124
- Sets the attributes of a subitem.
- #define LVM_GETCOLUMN 0xF125
- Retrieves the information about a listview column.
- #define LVM_GETCOLUMNWIDTH 0xF126
- Retrieves the width of a listview column.
- #define LVM_GETITEM 0xF127
- Retrieves the item's attributes.
- #define LVM_GETITEMSTATE 0xF128
- Retrieves the state of a listview item.
- #define LVM_GETSELECTEDCOLUMN 0xF129
- Retrieves the index of the currently selected column of a listview.
- #define LVM_GETSELECTEDCOUNT 0xF130
- Retrieves the number of the selected items in a listview.
- #define LVM_GETTOPVISIBLE 0xF131
- Retrieves the index of the topmost visible item in a listview.
- #define LVM_NULL 0xF132
- reserved.
- #define LVM_SETITEMSTATE 0xF133
- reserved.
- #define LVM_SORTITEMS 0xF134
- Uses an application-defined comparision function to sort the items.
- #define LVM_SETITEMHEIGHT 0xF135
- Changes the height of a item.
- #define LVM_SETHEADHEIGHT 0xF136
- Changes the height of the header.
- #define LVM_GETITEMADDDATA 0xF137
- Gets the 32-bit data value associated with an item.
- #define LVM_SETITEMADDDATA 0xF138
- Associates a 32-bit data value with an item.
- #define LVM_CHOOSEITEM 0xF139
- Selects and shows an item.
- #define LVM_SETSTRCMPFUNC 0xF140
- Sets the STRCMP function used to sort items.
- #define LVM_GETRELATEDITEM 0xF141
- Retrives related item of specific item.
- #define LVM_FOLDITEM 0xF142
- Folds or unfolds an item.
- #define LVM_SETCUSTOMDRAW 0xF143
- Sets the customized drawing functions of listview.
- #define LVM_GETSELECTEDITEMRECT 0xF144
- Get the selected item's Rectangle.
- #define LVN_CLICKED 1
- This notification code informs parent window the mouse clicked.
- #define LVN_SELCHANGE 2
- This notification code informs parent window the current selected item has changed.
- #define LVN_ITEMRDOWN 4
- This notification code informs parent window the right mouse button down on a listview item.
- #define LVN_ITEMRUP 5
- This notification code informs parent window the right mouse button up on a listview item.
- #define LVN_HEADRDOWN 6
- This notification code informs parent window the right mouse button down on the listview header.
- #define LVN_HEADRUP 7
- This notification code informs parent window the right mouse button up on the listview header.
- #define LVN_KEYDOWN 8
- This notification code informs parent window that a key has been pressed.
- #define LVN_ITEMDBCLK 9
- This notification code informs parent window the current selected item has be double clicked.
- #define LVN_ITEMCLK 10
- This notification code informs parent window the current selected item has been clicked.
- #define LVN_COLCHANGE 11
- This notification code informs parent window the current selected column has changed.
- #define LVN_FOLDED 12
- This notification code informs that user folds an item by mouse clicking.
- #define LVN_UNFOLDED 13
- This notification code informs that user unfolds an item by mouse clicking.
Typedefs
Detailed Description
- Author:
- Wei Yongming <ymwei@minigui.org>
- Date:
- 2002/01/06
Copyright (C) 2002-2008 Feynman Software
Copyright (C) 1998-2002 Wei Yongming
All rights reserved by Feynman Software.
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
Definition in file listview.h.