aswang  1.0
Public Types | Public Member Functions
aswang::ListView Class Reference

#include <ListView.h>

+ Inheritance diagram for aswang::ListView:

List of all members.

Public Types

enum  ListViewStyles {
  lvs_icon = LVS_ICON, lvs_smallIcon = LVS_SMALLICON, lvs_list = LVS_LIST, lvs_report = LVS_REPORT,
  lvs_sortAscending = LVS_SORTASCENDING, lvs_sortDescending = LVS_SORTDESCENDING, lvs_ownerData = LVS_OWNERDATA
}
enum  ListViewItemStates {
  lvis_focused = LVIS_FOCUSED, lvis_selected = LVIS_SELECTED, lvis_cut = LVIS_CUT, lvis_dropHilited = LVIS_DROPHILITED,
  lvis_glow = LVIS_GLOW, lvis_activating = LVIS_ACTIVATING, lvis_overlayMask = LVIS_OVERLAYMASK, lvis_stateImageMask = LVIS_STATEIMAGEMASK
}
enum  ListViewNIFlags {
  lvni_all = LVNI_ALL, lvni_focused = LVNI_FOCUSED, lvni_selected = LVNI_SELECTED, lvni_cut = LVNI_CUT,
  lvni_dropHilited = LVNI_DROPHILITED, lvni_above = LVNI_ABOVE, lvni_below = LVNI_BELOW, lvni_left = LVNI_TOLEFT,
  lvni_right = LVNI_TORIGHT
}
enum  ListViewItemCountFlags { lvsicf_noInvalidateAll = LVSICF_NOINVALIDATEALL, lvsicf_noScroll = LVSICF_NOSCROLL }
typedef int( CompareFunc )(long, long, long)

Public Member Functions

 ListView (HWND h, window *p=NULL)
 ListView (window *p, unsigned long newstyle=WS_CHILD|lvs_report)
virtual ~ListView ()
virtual const _TCHAR * GetClassName () const
virtual bool Arrange (long code=LVA_DEFAULT)
virtual bool DeleteAllItems ()
virtual bool DeleteItem (long id)
virtual long GetItemState (long index, ListViewItemStates mask)
virtual long GetNextItem (long index, ListViewNIFlags flags)
virtual long InsertItem (LVITEM *item)
virtual bool SetItem (LVITEM *item)
virtual long GetItemCount ()
virtual bool SetItemCount (long count, ListViewItemCountFlags flags=(ListViewItemCountFlags) 0)
virtual bool SetItemPosition (long index, int x, int y)
virtual bool SetItemState (long index, LVITEM *item)
virtual bool SetItemText (long index, const AswangStr &str, long subIndex=0)
virtual bool SortItems (long arg, CompareFunc *cf)
virtual bool SetColumn (long index, LVCOLUMN *column)
virtual long InsertColumn (long index, LVCOLUMN *column)

Detailed Description

Definition at line 24 of file ListView.h.


Member Typedef Documentation

typedef int( aswang::ListView::CompareFunc)(long, long, long)

Definition at line 60 of file ListView.h.


Member Enumeration Documentation

Enumerator:
lvsicf_noInvalidateAll 
lvsicf_noScroll 

Definition at line 56 of file ListView.h.

Enumerator:
lvis_focused 
lvis_selected 
lvis_cut 
lvis_dropHilited 
lvis_glow 
lvis_activating 
lvis_overlayMask 
lvis_stateImageMask 

Definition at line 35 of file ListView.h.

Enumerator:
lvni_all 
lvni_focused 
lvni_selected 
lvni_cut 
lvni_dropHilited 
lvni_above 
lvni_below 
lvni_left 
lvni_right 

Definition at line 45 of file ListView.h.

Enumerator:
lvs_icon 
lvs_smallIcon 
lvs_list 
lvs_report 
lvs_sortAscending 
lvs_sortDescending 
lvs_ownerData 

Definition at line 26 of file ListView.h.


Constructor & Destructor Documentation

aswang::ListView::ListView ( HWND  h,
window p = NULL 
) [inline]

Definition at line 62 of file ListView.h.

aswang::ListView::ListView ( window p,
unsigned long  newstyle = WS_CHILD|lvs_report 
) [inline]

Definition at line 63 of file ListView.h.

virtual aswang::ListView::~ListView ( ) [inline, virtual]

Definition at line 64 of file ListView.h.


Member Function Documentation

bool ListView::Arrange ( long  code = LVA_DEFAULT) [virtual]

Definition at line 24 of file ListView.cpp.

bool ListView::DeleteAllItems ( ) [virtual]

Definition at line 28 of file ListView.cpp.

bool ListView::DeleteItem ( long  id) [virtual]

Definition at line 32 of file ListView.cpp.

virtual const _TCHAR* aswang::ListView::GetClassName ( ) const [inline, virtual]

Implements aswang::window.

Definition at line 66 of file ListView.h.

long ListView::GetItemCount ( ) [virtual]

Definition at line 52 of file ListView.cpp.

long ListView::GetItemState ( long  index,
ListViewItemStates  mask 
) [virtual]

Definition at line 36 of file ListView.cpp.

long ListView::GetNextItem ( long  index,
ListViewNIFlags  flags 
) [virtual]

Definition at line 40 of file ListView.cpp.

long ListView::InsertColumn ( long  index,
LVCOLUMN *  column 
) [virtual]

Definition at line 83 of file ListView.cpp.

long ListView::InsertItem ( LVITEM *  item) [virtual]

Definition at line 44 of file ListView.cpp.

bool ListView::SetColumn ( long  index,
LVCOLUMN *  column 
) [virtual]

Definition at line 79 of file ListView.cpp.

bool ListView::SetItem ( LVITEM *  item) [virtual]

Definition at line 48 of file ListView.cpp.

bool ListView::SetItemCount ( long  count,
ListViewItemCountFlags  flags = (ListViewItemCountFlags)0 
) [virtual]

Definition at line 56 of file ListView.cpp.

bool ListView::SetItemPosition ( long  index,
int  x,
int  y 
) [virtual]

Definition at line 60 of file ListView.cpp.

bool ListView::SetItemState ( long  index,
LVITEM *  item 
) [virtual]

Definition at line 64 of file ListView.cpp.

bool ListView::SetItemText ( long  index,
const AswangStr str,
long  subIndex = 0 
) [virtual]

Definition at line 68 of file ListView.cpp.

bool ListView::SortItems ( long  arg,
CompareFunc cf 
) [virtual]

Definition at line 75 of file ListView.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines