#include <ListCtrlEx.h>

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_ItemInfo > | m_vInfo |
Definition at line 37 of file ListCtrlEx.h.
| CListCtrlEx::CListCtrlEx | ( | ) |
Definition at line 16 of file ListCtrlEx.cpp.
References LCSM_ALL_SUPPORTED, LCSM_NONE, m_appszCols, m_clrGrid, m_cTotalCols, m_iSortCol, m_pSelImages, m_sortMode, m_sortModeSupport, NULL, and UseGrid().
| CListCtrlEx::~CListCtrlEx | ( | ) | [virtual] |
Definition at line 28 of file ListCtrlEx.cpp.
| 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 | ) |
Definition at line 635 of file ListCtrlEx.cpp.
References m_aIndex, and m_cTotalCols.
Referenced by OnColumnclick(), CFVDownloads_Tasks::OnGetdispinfo(), and CDownloads_Tasks::OnGetdispinfo().
| 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 | |||
| ) |
Definition at line 602 of file ListCtrlEx.cpp.
References ListEx_ItemInfo::clrBg, ListEx_ItemInfo::clrText, simple_client::info, and m_vInfo.
Referenced by CFVDownloads_Tasks::AddDownload(), and CDownloads_Tasks::AddDownloadToList().
| void CListCtrlEx::ChangeColumnVisibility | ( | int | iColumn | ) |
Definition at line 551 of file ListCtrlEx.cpp.
References DeleteHdrItem(), InsertHdrItem(), and m_aIndex.
Referenced by CFlashVideoDownloadsWnd::OnDLListShowCol(), CDownloadsWnd::OnDLListShowCol(), CDownloadsWnd::OnDLLogShowCol(), CHFEWnd::OnFilesListShowCol(), CShedulerWnd::OnLogShowCol(), CHFEWnd::OnLogShowCol(), CSpiderWnd::OnPagesListShowCol(), OnShowCol(), CSitesWnd::OnSitesListShowCol(), and CShedulerWnd::OnTasksListShowCol().
| BOOL CListCtrlEx::IsColumnShown | ( | int | iCol | ) |
Definition at line 546 of file ListCtrlEx.cpp.
References m_aIndex.
Referenced by CFlashVideoDownloadsWnd::OnUpdateMenuView(), CDownloadsWnd::UpdateDLListColMenu(), CDownloadsWnd::UpdateDLLogColMenu(), CHFEWnd::UpdateFilesListColMenu(), CShedulerWnd::UpdateLogColMenu(), CHFEWnd::UpdateLogColMenu(), CSpiderWnd::UpdatePagesListColMenu(), CSitesWnd::UpdateSitesListColMenu(), and CShedulerWnd::UpdateTasksListColMenu().
| void CListCtrlEx::SetItemText | ( | int | iItem, | |
| int | iSubItem, | |||
| LPCSTR | pszText | |||
| ) |
Definition at line 540 of file ListCtrlEx.cpp.
References m_aIndex.
Referenced by AddItem(), CWndLog::AddRecord(), CDownloads_Log::AddRecord(), CDownloads_Deleted::UpdateDownload(), CFloatingInfoWnd::UpdateDownloadProgress(), CFloatingInfoWnd::UpdateDownloadSpeed(), CHFE_FileList::UpdateList(), CDownloads_History::UpdateRecord(), CSitesWnd::UpdateSite(), CSheduler_Tasks::UpdateTask(), and CSpiderTasks::UpdateWebPage().
| void CListCtrlEx::SetColumnText | ( | int | iCol, | |
| LPCSTR | pszText | |||
| ) |
Definition at line 504 of file ListCtrlEx.cpp.
References LISTEX_MAXCOLUMNS, LPSTR, m_aIndex, and m_appszCols.
Referenced by CWndLog::ApplyLanguage(), CSpiderTasks::ApplyLanguage(), CSitesWnd::ApplyLanguage(), CSheduler_Tasks::ApplyLanguage(), CHFE_FileList::ApplyLanguage(), CFVDownloads_Tasks::ApplyLanguage(), CDownloads_Tasks::ApplyLanguage(), CDownloads_Log::ApplyLanguage(), CDownloads_History::ApplyLanguage(), and CDownloads_Deleted::ApplyLanguage().
| 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 | ) |
Definition at line 418 of file ListCtrlEx.cpp.
References m_pSelImages.
Referenced by CSpiderTasks::Create(), CSitesWnd::Create(), CSheduler_Tasks::Create(), CHFE_FileList::Create(), CFVDownloads_Tasks::Create(), CDownloads_Tasks::Create(), CDownloads_History::Create(), CDownloads_Deleted::Create(), and CFloatingInfoWnd::OnCreate().
| 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 | ) |
Definition at line 360 of file ListCtrlEx.cpp.
References _App, fsAppSettings::get_SettingsStore(), vmsAppSettingsStore::GetProfileBinary(), Initialize(), LISTEX_MAXCOLUMNS, m_aIndex, m_cTotalCols, and RebuildAIndex().
Referenced by CSpiderTasks::Create(), CSitesWnd::Create(), CSheduler_Tasks::Create(), CScheduler_Log::Create(), CHFE_Log::Create(), CHFE_FileList::Create(), CFVDownloads_Tasks::Create(), CDownloads_Tasks::Create(), CDownloads_Log::Create(), CDownloads_History::Create(), and CDownloads_Deleted::Create().
| void CListCtrlEx::SaveState | ( | LPCSTR | pszName | ) |
Definition at line 336 of file ListCtrlEx.cpp.
References _App, fsnew, fsAppSettings::get_SettingsStore(), LISTEX_MAXCOLUMNS, m_aIndex, m_cTotalCols, and vmsAppSettingsStore::WriteProfileBinary().
Referenced by CSpiderWnd::SaveAll(), CSitesWnd::SaveAll(), CShedulerWnd::SaveAll(), CDownloadsWnd::SaveAll(), CHFE_ListLog::SaveState(), CFVDownloads_Tasks::SaveState(), CDownloads_Info::SaveState(), and CDownloads_Downloads::SaveState().
| void CListCtrlEx::UseGrid | ( | BOOL | bUse = TRUE |
) |
| int CListCtrlEx::AddItem | ( | LPCSTR | pszItem, | |
| COLORREF | clrBg = GetSysColor (COLOR_WINDOW), |
|||
| COLORREF | clrText = GetSysColor (COLOR_WINDOWTEXT), |
|||
| int | iImage = 0, |
|||
| BOOL | bAddToBeginning = FALSE | |||
| ) |
Definition at line 252 of file ListCtrlEx.cpp.
References c, ListEx_ItemInfo::clrBg, ListEx_ItemInfo::clrText, simple_client::info, m_vInfo, and SetItemText().
Referenced by CDownloads_Deleted::AddDownload(), CFloatingInfoWnd::AddDownloadToList(), CWndLog::AddRecord(), CDownloads_Log::AddRecord(), CDownloads_History::AddRecord(), CSitesWnd::AddSiteToList(), CSheduler_Tasks::AddTask(), CSpiderTasks::AddWebPage(), and CHFE_FileList::UpdateList().
| int CListCtrlEx::GetItemImage | ( | int | iItem | ) |
Definition at line 285 of file ListCtrlEx.cpp.
Referenced by CFloatingInfoWnd::UpdateDownloadProgress(), and CFloatingInfoWnd::UpdateDownloadSpeed().
| 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] |
| 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] |
Definition at line 297 of file ListCtrlEx.cpp.
Referenced by CDownloads_Deleted::UpdateDownload(), CSpiderTasks::UpdateIcons(), CDownloads_History::UpdateRecord(), CSitesWnd::UpdateSite(), CSheduler_Tasks::UpdateTask(), and CSpiderTasks::UpdateWebPage().
| void CListCtrlEx::OnForceUpdate | ( | ) | [protected, virtual] |
Reimplemented in CDownloads_Deleted, CDownloads_History, CDownloads_Log, CDownloads_Tasks, CHFE_FileList, CSheduler_Tasks, CSitesWnd, CSpiderTasks, and CWndLog.
Definition at line 312 of file ListCtrlEx.cpp.
Referenced by DeleteHdrItem(), InsertHdrItem(), and OnNotify().
| void CListCtrlEx::OnKeyDown | ( | WORD | wVK | ) | [protected, virtual] |
Reimplemented in CDownloads_Deleted, CDownloads_History, CDownloads_Log, CDownloads_Tasks, CFVDownloads_Tasks, CHFE_FileList, CSheduler_Tasks, CSitesWnd, CSpiderTasks, and CWndLog.
Definition at line 280 of file ListCtrlEx.cpp.
Referenced by OnKeydown().
| 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] |
Reimplemented in CDownloads_Deleted, CDownloads_History, CDownloads_Log, CDownloads_Tasks, CFVDownloads_Tasks, CHFE_FileList, CSheduler_Tasks, CSitesWnd, CSpiderTasks, and CWndLog.
Definition at line 219 of file ListCtrlEx.cpp.
Referenced by OnRclick().
| 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] |
| 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] |
| void CListCtrlEx::OnDeleteallitems | ( | NMHDR * | pNMHDR, | |
| LRESULT * | pResult | |||
| ) | [protected] |
| void CListCtrlEx::OnKeydown | ( | NMHDR * | pNMHDR, | |
| LRESULT * | pResult | |||
| ) | [protected] |
| 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] |
Definition at line 559 of file ListCtrlEx.cpp.
References LCSM_ASCENDING, LCSM_ASCENDING_NOTSUPPORTED, LCSM_DESCENDING, LCSM_DESCENDING_NOTSUPPORTED, LCSM_NONE, m_iSortCol, m_sortMode, m_sortModeSupport, OnSortModeChanged(), and SubItemToSubItem().
| void CListCtrlEx::OnItemchanged | ( | NMHDR * | pNMHDR, | |
| LRESULT * | pResult | |||
| ) | [protected] |
CImageList CListCtrlEx::m_imgsSort [protected] |
fsLCSortMode CListCtrlEx::m_sortMode [protected] |
Definition at line 94 of file ListCtrlEx.h.
Referenced by CListCtrlEx(), CDownloads_Tasks::MoveSelectedDownloads(), OnColumnclick(), CDownloads_Tasks::OnDeleteAllItems(), CDownloads_History::OnSortModeChanged(), CDownloads_Deleted::OnSortModeChanged(), CDownloads_Tasks::Sort(), CDownloads_History::Sort(), and CDownloads_Deleted::Sort().
fsLCSortModeSupport CListCtrlEx::m_sortModeSupport [protected] |
Definition at line 95 of file ListCtrlEx.h.
Referenced by CDownloads_Tasks::CDownloads_Tasks(), CListCtrlEx(), and OnColumnclick().
int CListCtrlEx::m_iSortCol [protected] |
Definition at line 96 of file ListCtrlEx.h.
Referenced by CDownloads_History::_sortFunc(), CDownloads_Deleted::_sortFunc(), CListCtrlEx(), OnColumnclick(), and CDownloads_Tasks::SortDownloads().
int CListCtrlEx::m_cTotalCols [protected] |
Definition at line 103 of file ListCtrlEx.h.
Referenced by CListCtrlEx(), Initialize(), OnParentNotify(), ReadState(), RebuildAIndex(), SaveState(), and SubItemToSubItem().
CImageList* CListCtrlEx::m_pSelImages [protected] |
Definition at line 104 of file ListCtrlEx.h.
Referenced by CListCtrlEx(), DrawItem(), and SetSelectedImages().
COLORREF CListCtrlEx::m_clrGrid [protected] |
BOOL CListCtrlEx::m_bGrid [protected] |
int CListCtrlEx::m_aIndex[LISTEX_MAXCOLUMNS] [protected] |
Definition at line 108 of file ListCtrlEx.h.
Referenced by ChangeColumnVisibility(), DeleteHdrItem(), IsColumnShown(), OnParentNotify(), ReadState(), RebuildAIndex(), SaveState(), SetColumnText(), SetItemText(), and SubItemToSubItem().
LPCSTR CListCtrlEx::m_appszCols[LISTEX_MAXCOLUMNS] [protected] |
Definition at line 110 of file ListCtrlEx.h.
Referenced by CListCtrlEx(), InsertHdrItem(), OnParentNotify(), and SetColumnText().
std::vector<ListEx_ItemInfo> CListCtrlEx::m_vInfo [protected] |
Definition at line 126 of file ListCtrlEx.h.
Referenced by AddItem(), DrawItem(), OnDeleteitem(), SetItemColor(), VirtualView_AllItemsWillBeDeleted(), VirtualView_ItemWillBeAdded(), and VirtualView_ItemWillBeDeleted().
1.5.6