#include <CtrlLibraryTree.h>
Inheritance diagram for CLibraryTreeCtrl:
Public Member Functions | |
CLibraryTreeCtrl () | |
virtual | ~CLibraryTreeCtrl () |
void | SetToolTip (CCoolTipCtrl *pTip) |
void | Clear () |
BOOL | Expand (CLibraryTreeItem *pItem, TRISTATE bExpand=TS_TRUE, BOOL bInvalidate=TRUE) |
BOOL | Select (CLibraryTreeItem *pItem, TRISTATE bSelect=TS_TRUE, BOOL bInvalidate=TRUE) |
BOOL | SelectAll (CLibraryTreeItem *pParent=NULL, BOOL bInvalidate=TRUE) |
BOOL | DeselectAll (CLibraryTreeItem *pExcept=NULL, CLibraryTreeItem *pParent=NULL, BOOL bInvalidate=TRUE) |
BOOL | Highlight (CLibraryTreeItem *pItem) |
int | GetSelectedCount () const |
CLibraryTreeItem * | GetFirstSelected () const |
CLibraryTreeItem * | GetLastSelected () const |
CLibraryTreeItem * | HitTest (const POINT &point, RECT *pRect=NULL) const |
BOOL | GetRect (CLibraryTreeItem *pItem, RECT *pRect) |
CLibraryTreeItem * | GetFolderItem (LPVOID pSearch, CLibraryTreeItem *pParent=NULL) |
virtual BOOL | Create (CWnd *pParentWnd) |
Protected Member Functions | |
void | UpdateScroll () |
void | ScrollBy (int nDelta) |
void | ScrollTo (int nPosition) |
void | Paint (CDC &dc, CRect &rcClient, CPoint &pt, CLibraryTreeItem *pItem) |
CLibraryTreeItem * | HitTest (CRect &rcClient, CPoint &pt, CLibraryTreeItem *pItem, const POINT &point, RECT *pRect) const |
BOOL | GetRect (CPoint &pt, CLibraryTreeItem *pItem, CLibraryTreeItem *pFind, RECT *pRect) |
BOOL | CleanItems (CLibraryTreeItem *pItem, DWORD nCookie, BOOL bVisible) |
BOOL | CollapseRecursive (CLibraryTreeItem *pItem) |
void | NotifySelection () |
void | StartDragging (CPoint &ptMouse) |
CImageList * | CreateDragImage (const CPoint &ptMouse) |
afx_msg void | OnSize (UINT nType, int cx, int cy) |
afx_msg void | OnVScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar) |
afx_msg BOOL | OnEraseBkgnd (CDC *pDC) |
afx_msg void | OnPaint () |
afx_msg void | OnLButtonDown (UINT nFlags, CPoint point) |
afx_msg void | OnLButtonDblClk (UINT nFlags, CPoint point) |
afx_msg BOOL | OnMouseWheel (UINT nFlags, short zDelta, CPoint pt) |
afx_msg void | OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags) |
afx_msg void | OnRButtonDown (UINT nFlags, CPoint point) |
afx_msg void | OnMouseMove (UINT nFlags, CPoint point) |
afx_msg void | OnLButtonUp (UINT nFlags, CPoint point) |
Protected Attributes | |
CLibraryTreeItem * | m_pRoot |
int | m_nTotal |
int | m_nVisible |
int | m_nScroll |
int | m_nSelected |
CLibraryTreeItem * | m_pSelFirst |
CLibraryTreeItem * | m_pSelLast |
CLibraryTreeItem * | m_pFocus |
BOOL | m_bDrag |
CPoint | m_ptDrag |
CLibraryTreeItem * | m_pDropItem |
DWORD | m_nCleanCookie |
CCoolTipCtrl * | m_pTip |
|
Definition at line 66 of file CtrlLibraryTree.cpp. References NULL. |
|
Definition at line 84 of file CtrlLibraryTree.cpp. References m_pRoot. |
|
Definition at line 376 of file CtrlLibraryTree.cpp. References DeselectAll(), CLibraryTreeItem::m_nCount, m_nTotal, m_pFocus, CLibraryTreeItem::m_pList, NULL, Select(), and TS_FALSE. Referenced by CLibraryTreeView::Update(), and CLibraryTreeView::UpdatePhysical(). |
|
Definition at line 106 of file CtrlLibraryTree.cpp. References CLibraryTreeItem::Clear(), CCoolTipCtrl::Hide(), CLibraryTreeItem::m_nCount, m_nSelected, m_nTotal, m_pDropItem, m_pFocus, m_pRoot, m_pSelFirst, m_pSelLast, m_pTip, NULL, and UpdateScroll(). Referenced by CLibraryTreeView::SetVirtual(). |
|
Definition at line 186 of file CtrlLibraryTree.cpp. References Expand(), CLibraryTreeItem::m_bContract1, CLibraryTreeItem::m_bExpanded, CLibraryTreeItem::m_nCount, CLibraryTreeItem::m_pList, m_pRoot, and TS_FALSE. Referenced by Highlight(). |
|
Definition at line 92 of file CtrlLibraryTree.cpp. References IDC_LIBRARY_TREE, and NULL. Referenced by CLibraryFrame::OnCreate(). |
|
Definition at line 935 of file CtrlLibraryTree.cpp. References CoolInterface, GetRect(), CCoolInterface::m_fntNormal, m_pSelFirst, CLibraryTreeItem::m_pSelNext, MAX_DRAG_SIZE, MAX_DRAG_SIZE_2, and NULL. Referenced by StartDragging(). |
|
Definition at line 297 of file CtrlLibraryTree.cpp. References CLibraryTreeItem::m_bSelected, CLibraryTreeItem::m_nCount, CLibraryTreeItem::m_pList, m_pRoot, NULL, Select(), and TS_FALSE. Referenced by CleanItems(), Expand(), OnKeyDown(), OnLButtonDown(), CLibraryTreeView::OnLibraryFolderNew(), CLibraryTreeView::OnLibraryFolderProperties(), CLibraryTreeView::OnLibraryParent(), and CLibraryTreeView::SelectFolder(). |
|
|
Definition at line 325 of file CtrlLibraryTree.cpp. References m_pSelFirst. Referenced by CLibraryFrame::Update(). |
|
Definition at line 415 of file CtrlLibraryTree.cpp. References CLibraryTreeItem::m_nCount, CLibraryTreeItem::m_pList, m_pRoot, and NULL. Referenced by CLibraryTreeView::OnLibraryFolderNew(), CLibraryTreeView::OnLibraryFolderProperties(), and CLibraryTreeView::SelectFolder(). |
|
Definition at line 330 of file CtrlLibraryTree.cpp. References m_pSelLast. |
|
Definition at line 870 of file CtrlLibraryTree.cpp. References CoolInterface, GetRect(), ITEM_HEIGHT, CLibraryTreeItem::m_bBold, CLibraryTreeItem::m_bExpanded, CCoolInterface::m_fntBold, CCoolInterface::m_fntNormal, CLibraryTreeItem::m_nCount, CLibraryTreeItem::m_pList, and CLibraryTreeItem::m_sText. |
|
Definition at line 853 of file CtrlLibraryTree.cpp. References CLibraryTreeItem::m_nCount, m_nScroll, CLibraryTreeItem::m_pList, and m_pRoot. Referenced by CreateDragImage(), GetRect(), Highlight(), and OnKeyDown(). |
|
Definition at line 320 of file CtrlLibraryTree.cpp. References m_nSelected. |
|
Definition at line 335 of file CtrlLibraryTree.cpp. References CollapseRecursive(), Expand(), GetRect(), m_pFocus, CLibraryTreeItem::m_pParent, m_pRoot, ScrollBy(), TS_TRUE, and UpdateScroll(). Referenced by OnKeyDown(), CLibraryTreeView::OnLibraryParent(), and CLibraryTreeView::SelectFolder(). |
|
Definition at line 809 of file CtrlLibraryTree.cpp. References HitTest(), ITEM_HEIGHT, CLibraryTreeItem::m_bExpanded, CLibraryTreeItem::m_nCount, CLibraryTreeItem::m_pList, and NULL. |
|
Definition at line 791 of file CtrlLibraryTree.cpp. References CLibraryTreeItem::m_nCount, m_nScroll, CLibraryTreeItem::m_pList, m_pRoot, and NULL. Referenced by CLibraryTreeView::DropShowTarget(), HitTest(), OnKeyDown(), OnLButtonDown(), and OnMouseMove(). |
|
|
Definition at line 720 of file CtrlLibraryTree.cpp. |
|
Definition at line 543 of file CtrlLibraryTree.cpp. References DeselectAll(), Expand(), GetRect(), CCoolTipCtrl::Hide(), Highlight(), HitTest(), ITEM_HEIGHT, CLibraryTreeItem::m_bExpanded, CLibraryTreeItem::m_nCount, m_pFocus, CLibraryTreeItem::m_pList, CLibraryTreeItem::m_pParent, m_pRoot, m_pTip, NotifySelection(), NULL, Select(), TS_FALSE, and TS_TRUE. |
|
Reimplemented in CLibraryTreeView. Definition at line 492 of file CtrlLibraryTree.cpp. References Expand(), CLibraryTreeItem::m_nCount, m_pFocus, NotifySelection(), NULL, OnLButtonDown(), and TS_UNKNOWN. Referenced by CLibraryTreeView::OnLButtonDblClk(). |
|
Definition at line 448 of file CtrlLibraryTree.cpp. References DeselectAll(), Expand(), CCoolTipCtrl::Hide(), HitTest(), m_bDrag, CLibraryTreeItem::m_bSelected, CLibraryTreeItem::m_nCount, m_pFocus, m_ptDrag, m_pTip, CLibraryTreeItem::m_pVirtual, NotifySelection(), NULL, Select(), and TS_UNKNOWN. Referenced by OnLButtonDblClk(), and OnRButtonDown(). |
|
Definition at line 535 of file CtrlLibraryTree.cpp. References m_bDrag. |
|
Definition at line 508 of file CtrlLibraryTree.cpp. References CCoolTipCtrl::Hide(), HitTest(), m_bDrag, m_ptDrag, m_pTip, NULL, CCoolTipCtrl::Show(), and StartDragging(). |
|
Definition at line 694 of file CtrlLibraryTree.cpp. References ITEM_HEIGHT, and ScrollBy(). |
|
Definition at line 725 of file CtrlLibraryTree.cpp. References CoolInterface, CCoolInterface::m_crWindow, CCoolInterface::m_fntNormal, CLibraryTreeItem::m_nCount, m_nScroll, CLibraryTreeItem::m_pList, m_pRoot, and Paint(). |
|
Definition at line 502 of file CtrlLibraryTree.cpp. References OnLButtonDown(). |
|
Definition at line 439 of file CtrlLibraryTree.cpp. References m_nVisible, and UpdateScroll(). |
|
Definition at line 665 of file CtrlLibraryTree.cpp. References m_nVisible, ScrollBy(), and ScrollTo(). |
|
Definition at line 748 of file CtrlLibraryTree.cpp. References CoolInterface, ITEM_HEIGHT, CLibraryTreeItem::m_bBold, CLibraryTreeItem::m_bExpanded, CCoolInterface::m_fntBold, CCoolInterface::m_fntNormal, CLibraryTreeItem::m_nCount, m_pDropItem, CLibraryTreeItem::m_pList, CLibraryTreeItem::m_sText, and CLibraryTreeItem::Paint(). Referenced by OnPaint(). |
|
Definition at line 700 of file CtrlLibraryTree.cpp. References m_nScroll, and ScrollTo(). Referenced by CLibraryTreeView::DropShowTarget(), Highlight(), OnMouseWheel(), and OnVScroll(). |
|
Definition at line 705 of file CtrlLibraryTree.cpp. References m_nScroll, NULL, and UpdateScroll(). Referenced by OnVScroll(), and ScrollBy(). |
|
|
Definition at line 270 of file CtrlLibraryTree.cpp. References CLibraryTreeItem::m_bExpanded, CLibraryTreeItem::m_nCount, CLibraryTreeItem::m_pList, m_pRoot, NULL, Select(), and TS_TRUE. Referenced by CLibraryTreeView::OnLButtonDblClk(). |
|
Definition at line 99 of file CtrlLibraryTree.cpp. References CCoolTipCtrl::Hide(), and m_pTip. Referenced by CLibraryTreeView::SetVirtual(). |
|
Definition at line 915 of file CtrlLibraryTree.cpp. References CLibraryList::AddTail(), CreateDragImage(), CLibraryFrame::DragObjects(), m_nSelected, m_pSelFirst, CLibraryTreeItem::m_pSelNext, and NULL. Referenced by OnMouseMove(). |
|
Definition at line 651 of file CtrlLibraryTree.cpp. References ITEM_HEIGHT, m_nScroll, m_nTotal, and m_nVisible. Referenced by Clear(), Expand(), Highlight(), OnSize(), ScrollTo(), CLibraryTreeView::UpdatePhysical(), and CLibraryTreeView::UpdateVirtual(). |
|
Definition at line 54 of file CtrlLibraryTree.h. Referenced by OnLButtonDown(), OnLButtonUp(), and OnMouseMove(). |
|
Definition at line 58 of file CtrlLibraryTree.h. Referenced by CLibraryTreeView::Update(), and CLibraryTreeView::UpdatePhysical(). |
|
Definition at line 47 of file CtrlLibraryTree.h. Referenced by GetRect(), HitTest(), OnPaint(), ScrollBy(), ScrollTo(), and UpdateScroll(). |
|
|
Definition at line 45 of file CtrlLibraryTree.h. Referenced by CleanItems(), Clear(), Expand(), CLibraryTreeView::Update(), and UpdateScroll(). |
|
Definition at line 46 of file CtrlLibraryTree.h. Referenced by OnSize(), OnVScroll(), and UpdateScroll(). |
|
Definition at line 56 of file CtrlLibraryTree.h. Referenced by Clear(), CLibraryTreeView::DropObjects(), CLibraryTreeView::DropShowTarget(), and Paint(). |
|
Definition at line 52 of file CtrlLibraryTree.h. Referenced by CleanItems(), Clear(), Highlight(), OnKeyDown(), CLibraryTreeView::OnLButtonDblClk(), OnLButtonDblClk(), and OnLButtonDown(). |
|
Definition at line 44 of file CtrlLibraryTree.h. Referenced by Clear(), CollapseRecursive(), DeselectAll(), GetFolderItem(), GetRect(), Highlight(), HitTest(), OnKeyDown(), CLibraryTreeView::OnLibraryParent(), OnPaint(), SelectAll(), CLibraryTreeView::UpdatePhysical(), CLibraryTreeView::UpdateVirtual(), and ~CLibraryTreeCtrl(). |
|
|
Definition at line 51 of file CtrlLibraryTree.h. Referenced by Clear(), GetLastSelected(), and Select(). |
|
Definition at line 55 of file CtrlLibraryTree.h. Referenced by OnLButtonDown(), and OnMouseMove(). |
|
Definition at line 59 of file CtrlLibraryTree.h. Referenced by Clear(), OnKeyDown(), OnLButtonDown(), OnMouseMove(), and SetToolTip(). |