CListCtrlEx Class Reference

#include <ListCtrlEx.h>

Inheritance diagram for CListCtrlEx:

CDownloads_Deleted CDownloads_History CDownloads_Log CDownloads_Tasks CFloatingInfo_ListCtrlWnd CFVDownloads_Tasks CHFE_FileList CSheduler_Tasks CSitesWnd CSpiderTasks CWndLog

List of all members.

Public Member Functions

 CListCtrlEx ()
int SubItemToSubItem (int nSubItem)
void VirtualView_AllItemsWillBeDeleted ()
void VirtualView_ItemWillBeDeleted (int nItem)
void VirtualView_ItemWillBeAdded (COLORREF clrBg, COLORREF clrText, BOOL bAddToBeginning)
void ChangeColumnVisibility (int iColumn)
BOOL IsColumnShown (int iCol)
void SetItemText (int iItem, int iSubItem, LPCSTR pszText)
void SetColumnText (int iCol, LPCSTR pszText)
void Initialize ()
void DeleteHdrItem (int iItem)
void SetSelectedImages (CImageList *pImages)
void SetItemColor (int iItem, COLORREF clr, BOOL bUpdate=TRUE)
void ReadState (LPCSTR pszName)
void SaveState (LPCSTR pszName)
void UseGrid (BOOL bUse=TRUE)
int AddItem (LPCSTR pszItem, COLORREF clrBg=GetSysColor(COLOR_WINDOW), COLORREF clrText=GetSysColor(COLOR_WINDOWTEXT), int iImage=0, BOOL bAddToBeginning=FALSE)
int GetItemImage (int iItem)
virtual ~CListCtrlEx ()

Protected Member Functions

virtual BOOL OnNotify (WPARAM wParam, LPARAM lParam, LRESULT *pResult)
virtual void OnItemChanged (NM_LISTVIEW *pLV)
void InitSortImages ()
virtual void OnSortModeChanged ()
void InsertHdrItem (int iCol)
afx_msg void OnShowCol (UINT uCmd)
void RebuildAIndex ()
void SetItemImage (int iItem, int iImage)
virtual void OnForceUpdate ()
virtual void OnKeyDown (WORD wVK)
virtual void OnDeleteAllItems ()
virtual void OnDeleteItem (NM_LISTVIEW *pNM)
virtual void OnRClick ()
virtual void OnClick ()
void DrawItem (LPDRAWITEMSTRUCT lpDraw)
afx_msg void OnClick (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnRclick (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnDeleteitem (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnDeleteallitems (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnKeydown (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnParentNotify (UINT message, LPARAM lParam)
afx_msg void OnColumnclick (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnItemchanged (NMHDR *pNMHDR, LRESULT *pResult)

Protected Attributes

CImageList m_imgsSort
fsLCSortMode m_sortMode
fsLCSortModeSupport m_sortModeSupport
int m_iSortCol
int m_cTotalCols
CImageList * m_pSelImages
COLORREF m_clrGrid
BOOL m_bGrid
int m_aIndex [LISTEX_MAXCOLUMNS]
LPCSTR m_appszCols [LISTEX_MAXCOLUMNS]
std::vector< ListEx_ItemInfom_vInfo


Detailed Description

Definition at line 37 of file ListCtrlEx.h.


Constructor & Destructor Documentation

CListCtrlEx::CListCtrlEx (  ) 

CListCtrlEx::~CListCtrlEx (  )  [virtual]

Definition at line 28 of file ListCtrlEx.cpp.


Member Function Documentation

BOOL CListCtrlEx::OnNotify ( WPARAM  wParam,
LPARAM  lParam,
LRESULT *  pResult 
) [protected, virtual]

Definition at line 317 of file ListCtrlEx.cpp.

References OnForceUpdate(), RebuildAIndex(), and TRUE.

int CListCtrlEx::SubItemToSubItem ( int  nSubItem  ) 

void CListCtrlEx::VirtualView_AllItemsWillBeDeleted (  ) 

Definition at line 618 of file ListCtrlEx.cpp.

References m_vInfo.

Referenced by CDownloads_Tasks::DeleteAllItems().

void CListCtrlEx::VirtualView_ItemWillBeDeleted ( int  nItem  ) 

Definition at line 613 of file ListCtrlEx.cpp.

References m_vInfo.

Referenced by CDownloads_Tasks::DeleteDownload().

void CListCtrlEx::VirtualView_ItemWillBeAdded ( COLORREF  clrBg,
COLORREF  clrText,
BOOL  bAddToBeginning 
)

void CListCtrlEx::ChangeColumnVisibility ( int  iColumn  ) 

BOOL CListCtrlEx::IsColumnShown ( int  iCol  ) 

void CListCtrlEx::SetItemText ( int  iItem,
int  iSubItem,
LPCSTR  pszText 
)

void CListCtrlEx::SetColumnText ( int  iCol,
LPCSTR  pszText 
)

void CListCtrlEx::Initialize ( void   ) 

Definition at line 488 of file ListCtrlEx.cpp.

References m_cTotalCols, and RebuildAIndex().

Referenced by CFloatingInfoWnd::OnCreate(), and ReadState().

void CListCtrlEx::DeleteHdrItem ( int  iItem  ) 

Definition at line 423 of file ListCtrlEx.cpp.

References LISTEX_MAXCOLUMNS, m_aIndex, OnForceUpdate(), and RebuildAIndex().

Referenced by ChangeColumnVisibility().

void CListCtrlEx::SetSelectedImages ( CImageList *  pImages  ) 

void CListCtrlEx::SetItemColor ( int  iItem,
COLORREF  clr,
BOOL  bUpdate = TRUE 
)

Definition at line 411 of file ListCtrlEx.cpp.

References m_vInfo.

Referenced by CDownloads_Tasks::UpdateDownload().

void CListCtrlEx::ReadState ( LPCSTR  pszName  ) 

void CListCtrlEx::SaveState ( LPCSTR  pszName  ) 

void CListCtrlEx::UseGrid ( BOOL  bUse = TRUE  ) 

Definition at line 331 of file ListCtrlEx.cpp.

References m_bGrid.

Referenced by CListCtrlEx().

int CListCtrlEx::AddItem ( LPCSTR  pszItem,
COLORREF  clrBg = GetSysColor (COLOR_WINDOW),
COLORREF  clrText = GetSysColor (COLOR_WINDOWTEXT),
int  iImage = 0,
BOOL  bAddToBeginning = FALSE 
)

int CListCtrlEx::GetItemImage ( int  iItem  ) 

void CListCtrlEx::OnItemChanged ( NM_LISTVIEW *  pLV  )  [protected, virtual]

Reimplemented in CDownloads_Tasks, and CFVDownloads_Tasks.

Definition at line 630 of file ListCtrlEx.cpp.

Referenced by OnItemchanged().

void CListCtrlEx::InitSortImages (  )  [protected]

Definition at line 593 of file ListCtrlEx.cpp.

References IDB_SORTIMAGES, m_imgsSort, and SBMP.

Referenced by CDownloads_Tasks::Create().

void CListCtrlEx::OnSortModeChanged (  )  [protected, virtual]

Reimplemented in CDownloads_Deleted, CDownloads_History, and CDownloads_Tasks.

Definition at line 588 of file ListCtrlEx.cpp.

Referenced by OnColumnclick().

void CListCtrlEx::InsertHdrItem ( int  iCol  )  [protected]

Definition at line 528 of file ListCtrlEx.cpp.

References m_appszCols, OnForceUpdate(), and RebuildAIndex().

Referenced by ChangeColumnVisibility().

void CListCtrlEx::OnShowCol ( UINT  uCmd  )  [protected]

Definition at line 522 of file ListCtrlEx.cpp.

References ChangeColumnVisibility().

void CListCtrlEx::RebuildAIndex (  )  [protected]

Definition at line 468 of file ListCtrlEx.cpp.

References LISTEX_MAXCOLUMNS, m_aIndex, and m_cTotalCols.

Referenced by DeleteHdrItem(), Initialize(), InsertHdrItem(), OnNotify(), and ReadState().

void CListCtrlEx::SetItemImage ( int  iItem,
int  iImage 
) [protected]

void CListCtrlEx::OnForceUpdate (  )  [protected, virtual]

void CListCtrlEx::OnKeyDown ( WORD  wVK  )  [protected, virtual]

void CListCtrlEx::OnDeleteAllItems (  )  [protected, virtual]

Reimplemented in CDownloads_Tasks, CFVDownloads_Tasks, and CSpiderTasks.

Definition at line 247 of file ListCtrlEx.cpp.

Referenced by OnDeleteallitems().

void CListCtrlEx::OnDeleteItem ( NM_LISTVIEW *  pNM  )  [protected, virtual]

Reimplemented in CDownloads_Tasks, CFVDownloads_Tasks, and CSpiderTasks.

Definition at line 242 of file ListCtrlEx.cpp.

Referenced by OnDeleteitem().

void CListCtrlEx::OnRClick (  )  [protected, virtual]

void CListCtrlEx::OnClick (  )  [protected, virtual]

Reimplemented in CDownloads_Tasks, CFVDownloads_Tasks, and CSpiderTasks.

Definition at line 206 of file ListCtrlEx.cpp.

Referenced by OnClick().

void CListCtrlEx::DrawItem ( LPDRAWITEMSTRUCT  lpDraw  )  [protected]

Definition at line 53 of file ListCtrlEx.cpp.

References BOOL, COLORREF, FALSE, m_bGrid, m_clrGrid, m_pSelImages, m_vInfo, RGBIsEqual(), and TRUE.

void CListCtrlEx::OnClick ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

Definition at line 200 of file ListCtrlEx.cpp.

References OnClick().

void CListCtrlEx::OnRclick ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

Reimplemented in CFloatingInfo_ListCtrlWnd.

Definition at line 211 of file ListCtrlEx.cpp.

References OnRClick().

void CListCtrlEx::OnDeleteitem ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

Definition at line 224 of file ListCtrlEx.cpp.

References m_vInfo, and OnDeleteItem().

void CListCtrlEx::OnDeleteallitems ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

Definition at line 235 of file ListCtrlEx.cpp.

References OnDeleteAllItems().

void CListCtrlEx::OnKeydown ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

Definition at line 271 of file ListCtrlEx.cpp.

References OnKeyDown().

void CListCtrlEx::OnParentNotify ( UINT  message,
LPARAM  lParam 
) [protected]

Definition at line 433 of file ListCtrlEx.cpp.

References m_aIndex, m_appszCols, m_cTotalCols, and state().

void CListCtrlEx::OnColumnclick ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

void CListCtrlEx::OnItemchanged ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

Definition at line 623 of file ListCtrlEx.cpp.

References OnItemChanged().


Member Data Documentation

CImageList CListCtrlEx::m_imgsSort [protected]

Definition at line 90 of file ListCtrlEx.h.

Referenced by InitSortImages().

Definition at line 95 of file ListCtrlEx.h.

Referenced by CDownloads_Tasks::CDownloads_Tasks(), CListCtrlEx(), and OnColumnclick().

int CListCtrlEx::m_iSortCol [protected]

int CListCtrlEx::m_cTotalCols [protected]

CImageList* CListCtrlEx::m_pSelImages [protected]

Definition at line 104 of file ListCtrlEx.h.

Referenced by CListCtrlEx(), DrawItem(), and SetSelectedImages().

Definition at line 105 of file ListCtrlEx.h.

Referenced by CListCtrlEx(), and DrawItem().

BOOL CListCtrlEx::m_bGrid [protected]

Definition at line 106 of file ListCtrlEx.h.

Referenced by DrawItem(), and UseGrid().

Definition at line 110 of file ListCtrlEx.h.

Referenced by CListCtrlEx(), InsertHdrItem(), OnParentNotify(), and SetColumnText().

std::vector<ListEx_ItemInfo> CListCtrlEx::m_vInfo [protected]


The documentation for this class was generated from the following files:

Generated on Sun May 25 00:20:48 2008 by  doxygen 1.5.6