#include <CtrlMatch.h>
Public Member Functions | |
CMatchCtrl () | |
virtual | ~CMatchCtrl () |
void | Update () |
void | DestructiveUpdate () |
void | SelectSchema (CSchema *pSchema, CPtrList *pColumns) |
void | SetBrowseMode () |
BOOL | HitTestHeader (const CPoint &point) |
void | SetSortColumn (int nColumn=-1, BOOL bDirection=FALSE) |
void | SetMessage (UINT nMessageID, BOOL bLink=FALSE) |
void | SetMessage (LPCTSTR pszMessage, BOOL bLink=FALSE) |
void | EnableTips (BOOL bTips) |
virtual BOOL | Create (CMatchList *pMatches, CWnd *pParentWnd) |
afx_msg int | OnCreate (LPCREATESTRUCT lpCreateStruct) |
afx_msg void | OnDestroy () |
afx_msg void | OnSize (UINT nType, int cx, int cy) |
afx_msg BOOL | OnEraseBkgnd (CDC *pDC) |
afx_msg void | OnPaint () |
afx_msg void | OnVScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar) |
afx_msg void | OnLButtonDown (UINT nFlags, CPoint point) |
afx_msg void | OnMouseMove (UINT nFlags, CPoint point) |
afx_msg void | OnLButtonUp (UINT nFlags, CPoint point) |
afx_msg void | OnLButtonDblClk (UINT nFlags, CPoint point) |
afx_msg void | OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags) |
afx_msg void | OnRButtonDown (UINT nFlags, CPoint point) |
afx_msg void | OnRButtonUp (UINT nFlags, CPoint point) |
afx_msg BOOL | OnSetCursor (CWnd *pWnd, UINT nHitTest, UINT message) |
afx_msg BOOL | OnMouseWheel (UINT nFlags, short zDelta, CPoint pt) |
afx_msg void | OnHScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar) |
afx_msg void | OnTimer (UINT nIDEvent) |
afx_msg void | OnChangeHeader (NMHDR *pNotifyStruct, LRESULT *pResult) |
afx_msg void | OnClickHeader (NMHDR *pNotifyStruct, LRESULT *pResult) |
afx_msg void | OnSetFocus (CWnd *pOldWnd) |
afx_msg void | OnKillFocus (CWnd *pNewWnd) |
Public Attributes | |
CMatchList * | m_pMatches |
LPCTSTR | m_sType |
CSchema * | m_pSchema |
CPtrList | m_pColumns |
Protected Member Functions | |
void | InsertColumn (int nColumn, LPCTSTR pszCaption, int nFormat, int nWidth) |
void | SaveColumnState () |
BOOL | LoadColumnState () |
void | UpdateScroll (DWORD nScroll=0xFFFFFFFF) |
void | ScrollBy (int nDelta) |
void | ScrollTo (DWORD nIndex) |
void | DrawItem (CDC &dc, CRect &rc, CMatchFile *pFile, CQueryHit *pHit, BOOL bFocus) |
void | DrawStatus (CDC &dc, CRect &rcCol, CMatchFile *pFile, CQueryHit *pHit, BOOL bSelected, COLORREF crBack) |
void | DrawRating (CDC &dc, CRect &rcCol, int nRating, BOOL bSelected, COLORREF crBack) |
void | DrawEmptyMessage (CDC &dc, CRect &rcClient) |
BOOL | HitTest (const CPoint &point, CMatchFile **poFile, CQueryHit **poHit, DWORD *pnIndex=NULL, CRect *pRect=NULL) |
BOOL | GetItemRect (CMatchFile *pFindFile, CQueryHit *pFindHit, CRect *pRect) |
BOOL | PixelTest (const CPoint &point) |
void | MoveFocus (int nDelta, BOOL bShift) |
void | NotifySelection () |
void | DoDelete () |
void | DoExpand (BOOL bExpand) |
Protected Attributes | |
CHeaderCtrl | m_wndHeader |
CMatchTipCtrl | m_wndTip |
CImageList | m_pStars |
DWORD | m_nTopIndex |
DWORD | m_nHitIndex |
DWORD | m_nBottomIndex |
DWORD | m_nFocus |
int | m_nPageCount |
int | m_nCurrentWidth |
DWORD | m_nCacheItems |
int | m_nTrailWidth |
UINT | m_nMessage |
CString | m_sMessage |
BOOL | m_bSearchLink |
CBitmap | m_bmSortAsc |
CBitmap | m_bmSortDesc |
BOOL | m_bTips |
int | m_nScrollWheelLines |
Friends | |
class | CHitMonitorWnd |
class | CSearchWnd |
class | CBrowseFrameCtrl |
|
Definition at line 76 of file CtrlMatch.cpp. References NULL. |
|
Definition at line 99 of file CtrlMatch.cpp. |
|
Definition at line 106 of file CtrlMatch.cpp. References IDC_MATCHES, m_pMatches, and NULL. Referenced by CBaseMatchWnd::OnCreate(). |
|
Definition at line 192 of file CtrlMatch.cpp. References CMatchTipCtrl::Hide(), and m_wndTip. Referenced by CBrowseHostWnd::OnBrowseHostRefresh(), CHitMonitorWnd::OnHitMonitorClear(), and CSearchWnd::OnSearchClear(). |
|
Definition at line 1680 of file CtrlMatch.cpp. References CMatchList::Filter(), CMatchTipCtrl::Hide(), CQueryHit::m_bBogus, m_pMatches, CMatchList::m_pSection, CMatchList::m_pSelectedFiles, CMatchList::m_pSelectedHits, m_wndTip, NotifySelection(), NULL, CMatchList::Select(), and Update(). Referenced by OnKeyDown(). |
|
Definition at line 1710 of file CtrlMatch.cpp. References CMatchFile::Expand(), CMatchTipCtrl::Hide(), m_pMatches, CMatchList::m_pSection, CMatchList::m_pSelectedFiles, m_wndTip, NotifySelection(), and Update(). Referenced by OnKeyDown(). |
|
Definition at line 1155 of file CtrlMatch.cpp. References CoolInterface, IDS_SEARCH_AGAIN, CSkin::LoadString(), m_bSearchLink, CCoolInterface::m_crText, CCoolInterface::m_crWindow, CShareazaApp::m_gdiFont, CShareazaApp::m_gdiFontLine, m_sMessage, NULL, Skin, and theApp. Referenced by OnPaint(). |
|
|
Definition at line 1120 of file CtrlMatch.cpp. References m_pStars. Referenced by DrawItem(). |
|
Definition at line 1018 of file CtrlMatch.cpp. References CShellIcons::GetHandle(), CQueryHit::m_bBrowseHost, CMatchFile::m_bBusy, CQueryHit::m_bBusy, CQueryHit::m_bChat, CMatchFile::m_bPreview, CQueryHit::m_bPreview, CMatchFile::m_bPush, CQueryHit::m_bPush, CMatchFile::m_bStable, CQueryHit::m_bStable, ShellIcons, SHI_BROWSE, SHI_BUSY, SHI_CHAT, SHI_FIREWALL, SHI_PREVIEW, SHI_TICK, SHI_UNSTABLE, and TS_TRUE. Referenced by DrawItem(). |
|
Definition at line 303 of file CtrlMatch.cpp. References m_bTips. Referenced by CBaseMatchWnd::OnMDIActivate(). |
|
Definition at line 1267 of file CtrlMatch.cpp. References CMatchFile::GetFilteredCount(), HEADER_HEIGHT, ITEM_HEIGHT, CMatchFile::m_bExpanded, CMatchList::m_nFiles, m_nHitIndex, m_nTopIndex, CMatchList::m_pFiles, CMatchFile::m_pHits, m_pMatches, CQueryHit::m_pNext, and CMatchList::m_pSection. Referenced by MoveFocus(). |
|
Definition at line 1201 of file CtrlMatch.cpp. References CMatchFile::GetFilteredCount(), HEADER_HEIGHT, ITEM_HEIGHT, CMatchFile::m_bExpanded, m_nHitIndex, m_nTopIndex, CMatchList::m_pFiles, CMatchFile::m_pHits, m_pMatches, CQueryHit::m_pNext, CMatchList::m_pSection, and NULL. Referenced by OnLButtonDblClk(), OnLButtonDown(), and OnMouseMove(). |
|
Definition at line 237 of file CtrlMatch.cpp. References m_wndHeader. Referenced by CBaseMatchWnd::OnContextMenu(). |
|
Definition at line 311 of file CtrlMatch.cpp. References m_wndHeader. Referenced by OnCreate(), and SelectSchema(). |
|
Definition at line 354 of file CtrlMatch.cpp. References m_pSchema, CSchema::m_sSingular, m_sType, m_wndHeader, MATCH_COL_COUNT, SetSortColumn(), and theApp. Referenced by OnCreate(), SelectSchema(), and SetBrowseMode(). |
|
Definition at line 1608 of file CtrlMatch.cpp. References CMatchList::ClearSelection(), CMatchFile::GetItemCount(), GetItemRect(), HEADER_HEIGHT, ITEM_HEIGHT, CMatchList::m_nFiles, m_nFocus, CMatchList::m_pFiles, m_pMatches, CMatchList::m_pSection, NotifySelection(), NULL, ScrollBy(), CMatchList::Select(), and Update(). Referenced by OnKeyDown(). |
|
Definition at line 1727 of file CtrlMatch.cpp. Referenced by DoDelete(), DoExpand(), MoveFocus(), OnKeyDown(), and OnLButtonDown(). |
|
Definition at line 1756 of file CtrlMatch.cpp. |
|
Definition at line 1735 of file CtrlMatch.cpp. References CMatchList::m_bSortDir, CMatchList::m_nSortColumn, m_pMatches, and SetSortColumn(). |
|
Definition at line 114 of file CtrlMatch.cpp. References CMatchTipCtrl::Create(), IDB_SMALL_STAR, IDC_MATCH_HEADER, InsertColumn(), LoadColumnState(), CShareazaApp::m_gdiFont, m_pStars, m_wndHeader, m_wndTip, MATCH_COL_CLIENT, MATCH_COL_COUNT, MATCH_COL_NAME, MATCH_COL_RATING, MATCH_COL_SIZE, MATCH_COL_SPEED, MATCH_COL_STATUS, MATCH_COL_TYPE, theApp, and UpdateScroll(). |
|
Definition at line 150 of file CtrlMatch.cpp. References m_wndTip, and SaveColumnState(). |
|
Definition at line 577 of file CtrlMatch.cpp. |
|
Definition at line 470 of file CtrlMatch.cpp. References HEADER_HEIGHT, m_nCurrentWidth, m_wndHeader, and NULL. |
|
Definition at line 1550 of file CtrlMatch.cpp. References CMatchList::ClearSelection(), DoDelete(), DoExpand(), CMatchTipCtrl::Hide(), ID_SEARCH_DOWNLOAD, CMatchList::m_nItems, m_nPageCount, m_pMatches, m_wndTip, MoveFocus(), NotifySelection(), and Update(). |
|
Definition at line 1772 of file CtrlMatch.cpp. |
|
Definition at line 1486 of file CtrlMatch.cpp. References HitTest(), ID_SEARCH_DOWNLOAD, NULL, and OnLButtonDown(). |
|
Definition at line 1347 of file CtrlMatch.cpp. References CMatchList::ClearSelection(), CMatchFile::Expand(), CMatchFile::GetFilteredCount(), CMatchTipCtrl::Hide(), HitTest(), CMatchFile::m_bExpanded, CMatchFile::m_bSelected, CQueryHit::m_bSelected, m_nFocus, m_pMatches, CMatchList::m_pSection, m_wndHeader, m_wndTip, NotifySelection(), NULL, CMatchList::Select(), and Update(). Referenced by OnLButtonDblClk(), and OnRButtonDown(). |
|
Definition at line 1462 of file CtrlMatch.cpp. References HEADER_HEIGHT, ID_SEARCH_SEARCH, m_bSearchLink, CMatchList::m_nFilteredFiles, and m_pMatches. Referenced by OnRButtonUp(). |
|
Definition at line 1411 of file CtrlMatch.cpp. References HEADER_HEIGHT, CMatchTipCtrl::Hide(), HitTest(), m_bTips, m_pMatches, CMatchList::m_pSection, m_wndTip, PixelTest(), and CMatchTipCtrl::Show(). |
|
Definition at line 517 of file CtrlMatch.cpp. References m_nScrollWheelLines, and ScrollBy(). |
|
|
Definition at line 1507 of file CtrlMatch.cpp. References OnLButtonDown(). |
|
Definition at line 1513 of file CtrlMatch.cpp. References OnLButtonUp(). |
|
Definition at line 1519 of file CtrlMatch.cpp. References HEADER_HEIGHT, IDC_HAND, m_bSearchLink, CMatchList::m_nFilteredFiles, m_pMatches, and theApp. |
|
Definition at line 1766 of file CtrlMatch.cpp. |
|
Definition at line 158 of file CtrlMatch.cpp. References HEADER_HEIGHT, ITEM_HEIGHT, m_nBottomIndex, m_nCurrentWidth, m_nPageCount, and UpdateScroll(). |
|
Definition at line 1761 of file CtrlMatch.cpp. |
|
Definition at line 441 of file CtrlMatch.cpp. References m_nPageCount, ScrollBy(), and ScrollTo(). |
|
Definition at line 1436 of file CtrlMatch.cpp. References CoolInterface, and CCoolInterface::m_crWindow. Referenced by OnMouseMove(). |
|
Definition at line 323 of file CtrlMatch.cpp. References CMatchList::m_bSortDir, CMatchList::m_nSortColumn, m_pMatches, m_pSchema, CSchema::m_sSingular, m_sType, m_wndHeader, and theApp. Referenced by OnDestroy(), SelectSchema(), and SetBrowseMode(). |
|
Definition at line 524 of file CtrlMatch.cpp. References ScrollTo(). Referenced by MoveFocus(), OnMouseWheel(), and OnVScroll(). |
|
Definition at line 531 of file CtrlMatch.cpp. References HEADER_HEIGHT, m_nBottomIndex, m_nHitIndex, CMatchList::m_nItems, m_nPageCount, m_nTopIndex, CMatchList::m_pFiles, m_pMatches, NULL, and UpdateScroll(). Referenced by OnVScroll(), ScrollBy(), and Update(). |
|
|
Definition at line 225 of file CtrlMatch.cpp. References LoadColumnState(), m_sType, m_wndHeader, MATCH_COL_CLIENT, MATCH_COL_COUNT, MATCH_COL_SPEED, MATCH_COL_STATUS, and SaveColumnState(). Referenced by CBrowseFrameCtrl::Create(). |
|
Definition at line 292 of file CtrlMatch.cpp. References m_bSearchLink, m_nCacheItems, m_nMessage, and m_sMessage. |
|
Definition at line 277 of file CtrlMatch.cpp. References CSkin::LoadString(), m_bSearchLink, m_nCacheItems, m_nMessage, m_sMessage, and Skin. Referenced by CSearchWnd::UpdateMessages(), and CBrowseHostWnd::UpdateMessages(). |
|
Definition at line 244 of file CtrlMatch.cpp. References IDB_SORT_ASC, IDB_SORT_DESC, m_bmSortAsc, m_bmSortDesc, m_pMatches, CMatchList::m_pSection, m_wndHeader, NULL, CMatchList::SetSortColumn(), and Update(). Referenced by LoadColumnState(), and OnClickHeader(). |
|
Definition at line 174 of file CtrlMatch.cpp. References CMatchList::ClearUpdated(), CMatchList::m_bUpdated, m_nBottomIndex, m_nCacheItems, CMatchList::m_nItems, m_nTopIndex, CMatchList::m_nUpdateMax, CMatchList::m_nUpdateMin, m_pMatches, CMatchList::m_pSection, and ScrollTo(). Referenced by DoDelete(), DoExpand(), MoveFocus(), OnKeyDown(), OnLButtonDown(), CBaseMatchWnd::OnTimer(), CBrowseFrameCtrl::OnTreeSelection(), SelectSchema(), and SetSortColumn(). |
|
Definition at line 398 of file CtrlMatch.cpp. References HEADER_HEIGHT, m_nCurrentWidth, CMatchList::m_nItems, m_nPageCount, m_pMatches, m_wndHeader, and NULL. Referenced by OnCreate(), OnSize(), and ScrollTo(). |
|
Definition at line 44 of file CtrlMatch.h. |
|
Definition at line 42 of file CtrlMatch.h. |
|
Definition at line 43 of file CtrlMatch.h. |
|
Definition at line 68 of file CtrlMatch.h. Referenced by SetSortColumn(). |
|
Definition at line 69 of file CtrlMatch.h. Referenced by SetSortColumn(). |
|
Definition at line 67 of file CtrlMatch.h. Referenced by DrawEmptyMessage(), OnLButtonUp(), OnSetCursor(), and SetMessage(). |
|
Definition at line 70 of file CtrlMatch.h. Referenced by EnableTips(), and OnMouseMove(). |
|
Definition at line 59 of file CtrlMatch.h. Referenced by OnPaint(), OnSize(), ScrollTo(), and Update(). |
|
Definition at line 63 of file CtrlMatch.h. Referenced by SetMessage(), and Update(). |
|
Definition at line 62 of file CtrlMatch.h. Referenced by OnHScroll(), OnSize(), and UpdateScroll(). |
|
Definition at line 60 of file CtrlMatch.h. Referenced by MoveFocus(), OnLButtonDown(), and OnPaint(). |
|
Definition at line 58 of file CtrlMatch.h. Referenced by GetItemRect(), HitTest(), OnPaint(), and ScrollTo(). |
|
Definition at line 65 of file CtrlMatch.h. Referenced by SetMessage(). |
|
Definition at line 61 of file CtrlMatch.h. Referenced by OnKeyDown(), OnSize(), OnVScroll(), ScrollTo(), and UpdateScroll(). |
|
Definition at line 71 of file CtrlMatch.h. Referenced by OnMouseWheel(). |
|
Definition at line 57 of file CtrlMatch.h. Referenced by GetItemRect(), HitTest(), OnPaint(), ScrollTo(), and Update(). |
|
Definition at line 64 of file CtrlMatch.h. Referenced by DrawItem(), and OnPaint(). |
|
Definition at line 51 of file CtrlMatch.h. Referenced by CBaseMatchWnd::OnContextMenu(), CBaseMatchWnd::OnSearchColumns(), and SelectSchema(). |
|
Definition at line 48 of file CtrlMatch.h. Referenced by Create(), DoDelete(), DoExpand(), GetItemRect(), HitTest(), MoveFocus(), OnClickHeader(), OnKeyDown(), OnLButtonDown(), OnLButtonUp(), OnMouseMove(), OnPaint(), CBrowseFrameCtrl::OnSelChangeMatches(), OnSetCursor(), CBrowseFrameCtrl::OnTreeSelection(), SaveColumnState(), ScrollTo(), SelectSchema(), SetSortColumn(), Update(), and UpdateScroll(). |
|
Definition at line 50 of file CtrlMatch.h. Referenced by LoadColumnState(), CBaseMatchWnd::OnContextMenu(), CSearchWnd::OnDestroy(), CHitMonitorWnd::OnDestroy(), CBrowseHostWnd::OnDestroy(), CBaseMatchWnd::OnSearchColumns(), CBrowseFrameCtrl::OnTreeSelection(), SaveColumnState(), and SelectSchema(). |
|
Definition at line 55 of file CtrlMatch.h. Referenced by DrawRating(), and OnCreate(). |
|
Definition at line 66 of file CtrlMatch.h. Referenced by DrawEmptyMessage(), OnPaint(), and SetMessage(). |
|
Definition at line 49 of file CtrlMatch.h. Referenced by LoadColumnState(), SaveColumnState(), and SetBrowseMode(). |
|
Definition at line 53 of file CtrlMatch.h. Referenced by DrawItem(), HitTestHeader(), InsertColumn(), LoadColumnState(), OnCreate(), OnHScroll(), OnLButtonDown(), CSearchWnd::OnSkinChange(), CHitMonitorWnd::OnSkinChange(), CBrowseFrameCtrl::OnSkinChange(), SaveColumnState(), SelectSchema(), SetBrowseMode(), SetSortColumn(), and UpdateScroll(). |
|
Definition at line 54 of file CtrlMatch.h. Referenced by DestructiveUpdate(), DoDelete(), DoExpand(), OnCreate(), OnDestroy(), OnKeyDown(), OnLButtonDown(), and OnMouseMove(). |