#include <C_ListView.h>
Public Types | |
| enum | EHighlight { HIGHLIGHT_NORMAL, HIGHLIGHT_ALLCOLUMNS, HIGHLIGHT_ROW } |
| Repaint wich are in collision. More... | |
Public Member Functions | |
| C_ListView (void) | |
| The Constructor. | |
| ~C_ListView (void) | |
| The Destructor. | |
| bool | Link (HWND ListView) |
| Associate the class to the list view. | |
| bool | Create_Columns (int iCx, int iCol) |
| Create a column. | |
| void | Set_Column_Text (int iCol, char *Text) |
| Put text into a column header. | |
| void | Set_Item_Text (int i, int SubItem, char *Text) |
| Set the text of an item, into a specified column. | |
| void | SetPosition (int x, int y, int cx, int cy) |
| Set the position of the List View. | |
| void | Init_Columns (HWND hwnd) |
| Create the columns. | |
| void | Clear (void) |
| Clear the list. | |
| int | Create_Item (char *Text) |
| Add an item into the Listview. | |
| int | Insert_Item (char *Text, int index) |
| Add an item into the Listview. | |
| void | Delete_Item (int index) |
| Delete an Item from the listview. | |
| int | GetSelectedCount (void) |
| Number of Item Selectioned. | |
| int | GetSelectedItem (void) |
| Return an index of a selected item. | |
| void | SelectItem (int index) |
| Select the following item. | |
| void | DrawItem (LPDRAWITEMSTRUCT lpDrawItemStruct, int State) |
| void | RepaintSelectedItems () |
| void | AddCollision (int index) |
| void | UpdateList (void) |
| void | ClearCollisionsList (void) |
| void | RepaintItem (int index) |
| void | GetFormatedSize (char *size, char *Buffer, int Count) |
| bool | isCollision (int index) |
| Say if the Item is currently in collision. | |
Data Fields | |
| HBRUSH | HighlightBkgBrush |
| Background Color of a selected item. | |
| COLORREF | HighlightTextBrush |
| Text Color of a selected item. | |
| HBRUSH | CollisionBkgBrush |
| Background Color of an item in collision. | |
| COLORREF | CollisionTextBrush |
| Text color of an item in collision. | |
| int | Collision_table [15] |
| Stockage of the collisions row. | |
| int | m_nHighlight |
| I don't know. | |
| int | Current_Item |
| Used by GetSelectedItem(). | |
| HWND | Lst |
| Handle to the ListView. | |
| long | Nb_Column |
| The number of created columns. | |
If you need to use the List View, use this class (modify it if you need)
|
|
Repaint wich are in collision. You must add the collision with AddCollision, the item will be of CollisionBkgBrush and CollisionTextBrush color.
|
|
|
The Constructor. Set to 0, and Current_Item to -1 |
|
|
The Destructor. do absolutely nothing |
|
|
|
|
|
Clear the list. Delete all the item contained into the List View |
|
|
|
|
||||||||||||
|
Create a column. Create a column into the list view, you must create one before use Set_Column_Text
|
|
|
Add an item into the Listview.
|
|
|
Delete an Item from the listview.
|
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
Number of Item Selectioned.
|
|
|
Return an index of a selected item.
|
|
|
Create the columns. This members create the columns used for the display of a .ssa file
|
|
||||||||||||
|
Add an item into the Listview.
|
|
|
Say if the Item is currently in collision. You must the collision via AddCollision
|
|
|
Associate the class to the list view. You MUST use Link before use any other members of the class
|
|
|
|
|
|
|
|
|
Select the following item. Select the item wich is placed just after the current selected |
|
||||||||||||
|
Put text into a column header.
|
|
||||||||||||||||
|
Set the text of an item, into a specified column.
|
|
||||||||||||||||||||
|
Set the position of the List View.
|
|
|
|
|
|
Stockage of the collisions row.
|
|
|
Background Color of an item in collision.
|
|
|
Text color of an item in collision.
|
|
|
Used by GetSelectedItem().
|
|
|
Background Color of a selected item.
|
|
|
Text Color of a selected item.
|
|
|
Handle to the ListView.
|
|
|
I don't know.
|
|
|
The number of created columns.
|
1.3