Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CLibraryFolderCtrl Class Reference

#include <CtrlSharedFolder.h>

List of all members.

Public Member Functions

 CLibraryFolderCtrl ()
virtual ~CLibraryFolderCtrl ()
void SetMultiSelect (BOOL bMultiSelect)
void SetSaveExpand (BOOL bSaveExpand)
void Update (DWORD nUpdateCookie=0)
void SetSelectedCookie (DWORD nUpdateCookie, HTREEITEM hParent=NULL, BOOL bSelect=FALSE)
POSITION GetSelectedFolderIterator () const
CLibraryFolderGetNextSelectedFolder (POSITION &pos) const
BOOL ClearSelection (HTREEITEM hExcept=NULL, HTREEITEM hItem=NULL, BOOL bSelect=FALSE)
BOOL SelectAll (HTREEITEM hExcept=NULL)
BOOL SelectFolder (CLibraryFolder *pFolder, HTREEITEM hItem=NULL)
virtual BOOL Create (DWORD dwStyle, const RECT &rect, CWnd *pParentWnd, UINT nID)

Protected Member Functions

void Update (CLibraryFolder *pFolder, HTREEITEM hFolder, HTREEITEM hParent, DWORD nUpdateCookie, BOOL bRecurse)
BOOL SelectItems (HTREEITEM hItemFrom, HTREEITEM hItemTo)
HTREEITEM GetFirstSelectedItem () const
HTREEITEM GetNextSelectedItem (HTREEITEM hItem) const
void NotifySelectionChanged ()
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
afx_msg void OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags)
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnLButtonDblClk (UINT nFlags, CPoint point)
afx_msg void OnLButtonUp (UINT nFlags, CPoint point)
afx_msg void OnItemExpanded (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnSelChanged (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnCustomDraw (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnRButtonDown (UINT nFlags, CPoint point)
afx_msg void OnNcPaint ()

Protected Attributes

HTREEITEM m_hRoot
HTREEITEM m_hFirstSelected
BOOL m_bFirstClick
BOOL m_bMultiSelect
BOOL m_bSaveExpand


Constructor & Destructor Documentation

CLibraryFolderCtrl::CLibraryFolderCtrl  ) 
 

Definition at line 59 of file CtrlSharedFolder.cpp.

CLibraryFolderCtrl::~CLibraryFolderCtrl  )  [virtual]
 

Definition at line 66 of file CtrlSharedFolder.cpp.


Member Function Documentation

BOOL CLibraryFolderCtrl::ClearSelection HTREEITEM  hExcept = NULL,
HTREEITEM  hItem = NULL,
BOOL  bSelect = FALSE
 

Definition at line 452 of file CtrlSharedFolder.cpp.

References NULL.

Referenced by OnKeyDown(), OnLButtonDown(), and SelectAll().

BOOL CLibraryFolderCtrl::Create DWORD  dwStyle,
const RECT &  rect,
CWnd *  pParentWnd,
UINT  nID
[virtual]
 

Definition at line 73 of file CtrlSharedFolder.cpp.

Referenced by CFileCopyDlg::OnInitDialog().

HTREEITEM CLibraryFolderCtrl::GetFirstSelectedItem  )  const [protected]
 

Definition at line 534 of file CtrlSharedFolder.cpp.

References NULL.

Referenced by GetSelectedFolderIterator(), OnKeyDown(), OnLButtonDown(), and Update().

CLibraryFolder * CLibraryFolderCtrl::GetNextSelectedFolder POSITION &  pos  )  const
 

Definition at line 239 of file CtrlSharedFolder.cpp.

References CLibraryFolders::CheckFolder(), CLibraryFolder::CheckFolder(), GetNextSelectedItem(), LibraryFolders, m_hRoot, and NULL.

Referenced by CFileCopyDlg::OnOK().

HTREEITEM CLibraryFolderCtrl::GetNextSelectedItem HTREEITEM  hItem  )  const [protected]
 

Definition at line 544 of file CtrlSharedFolder.cpp.

References NULL.

Referenced by GetNextSelectedFolder().

POSITION CLibraryFolderCtrl::GetSelectedFolderIterator  )  const
 

Definition at line 234 of file CtrlSharedFolder.cpp.

References GetFirstSelectedItem().

Referenced by CFileCopyDlg::OnOK(), and CFileCopyDlg::OnTimer().

void CLibraryFolderCtrl::NotifySelectionChanged  )  [protected]
 

Definition at line 583 of file CtrlSharedFolder.cpp.

Referenced by OnKeyDown(), OnLButtonDown(), OnSelChanged(), and SelectAll().

int CLibraryFolderCtrl::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Definition at line 288 of file CtrlSharedFolder.cpp.

References CShellIcons::GetObject(), m_hFirstSelected, m_hRoot, NULL, and ShellIcons.

void CLibraryFolderCtrl::OnCustomDraw NMHDR *  pNMHDR,
LRESULT *  pResult
[protected]
 

Definition at line 588 of file CtrlSharedFolder.cpp.

void CLibraryFolderCtrl::OnItemExpanded NMHDR *  pNMHDR,
LRESULT *  pResult
[protected]
 

Definition at line 554 of file CtrlSharedFolder.cpp.

References CLibraryFolders::CheckFolder(), Library, LibraryFolders, CLibraryFolder::m_bExpanded, m_bSaveExpand, CLibrary::m_pSection, SHI_FOLDER_CLOSED, and SHI_FOLDER_OPEN.

void CLibraryFolderCtrl::OnKeyDown UINT  nChar,
UINT  nRepCnt,
UINT  nFlags
[protected]
 

Definition at line 396 of file CtrlSharedFolder.cpp.

References ClearSelection(), GetFirstSelectedItem(), m_bMultiSelect, m_hFirstSelected, NotifySelectionChanged(), and NULL.

void CLibraryFolderCtrl::OnLButtonDblClk UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 369 of file CtrlSharedFolder.cpp.

References m_bMultiSelect, and SelectAll().

void CLibraryFolderCtrl::OnLButtonDown UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 300 of file CtrlSharedFolder.cpp.

References ClearSelection(), GetFirstSelectedItem(), m_bFirstClick, m_bMultiSelect, m_hFirstSelected, NotifySelectionChanged(), NULL, and SelectItems().

Referenced by OnRButtonDown().

void CLibraryFolderCtrl::OnLButtonUp UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 385 of file CtrlSharedFolder.cpp.

Referenced by OnRButtonDown().

void CLibraryFolderCtrl::OnNcPaint  )  [protected]
 

Definition at line 605 of file CtrlSharedFolder.cpp.

void CLibraryFolderCtrl::OnRButtonDown UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 389 of file CtrlSharedFolder.cpp.

References OnLButtonDown(), and OnLButtonUp().

void CLibraryFolderCtrl::OnSelChanged NMHDR *  pNMHDR,
LRESULT *  pResult
[protected]
 

Definition at line 576 of file CtrlSharedFolder.cpp.

References NotifySelectionChanged().

BOOL CLibraryFolderCtrl::SelectAll HTREEITEM  hExcept = NULL  ) 
 

Definition at line 475 of file CtrlSharedFolder.cpp.

References ClearSelection(), NotifySelectionChanged(), and NULL.

Referenced by OnLButtonDblClk().

BOOL CLibraryFolderCtrl::SelectFolder CLibraryFolder pFolder,
HTREEITEM  hItem = NULL
 

Definition at line 515 of file CtrlSharedFolder.cpp.

References NULL.

Referenced by CFileCopyDlg::OnInitDialog().

BOOL CLibraryFolderCtrl::SelectItems HTREEITEM  hItemFrom,
HTREEITEM  hItemTo
[protected]
 

Definition at line 485 of file CtrlSharedFolder.cpp.

Referenced by OnLButtonDown().

void CLibraryFolderCtrl::SetMultiSelect BOOL  bMultiSelect  ) 
 

Definition at line 80 of file CtrlSharedFolder.cpp.

References m_bMultiSelect.

Referenced by CFileCopyDlg::OnInitDialog().

void CLibraryFolderCtrl::SetSaveExpand BOOL  bSaveExpand  ) 
 

Definition at line 85 of file CtrlSharedFolder.cpp.

References m_bSaveExpand.

void CLibraryFolderCtrl::SetSelectedCookie DWORD  nUpdateCookie,
HTREEITEM  hParent = NULL,
BOOL  bSelect = FALSE
 

Definition at line 213 of file CtrlSharedFolder.cpp.

References m_hRoot, and CLibraryFolder::m_nSelectCookie.

void CLibraryFolderCtrl::Update CLibraryFolder pFolder,
HTREEITEM  hFolder,
HTREEITEM  hParent,
DWORD  nUpdateCookie,
BOOL  bRecurse
[protected]
 

Definition at line 124 of file CtrlSharedFolder.cpp.

References CLibraryFolder::CheckFolder(), CSettings::sDownloads::CompletePath, CSettings::Downloads, GetFirstSelectedItem(), CLibraryFolder::GetFolderIterator(), CLibraryFolder::GetNextFolder(), CLibraryFolder::IsShared(), CLibraryFolder::m_bExpanded, m_bMultiSelect, CLibraryFolder::m_nSelectCookie, CLibraryFolder::m_pParent, CLibraryFolder::m_sName, CLibraryFolder::m_sPath, NULL, Settings, SHI_FOLDER_CLOSED, SHI_FOLDER_OPEN, SHI_O_LOCKED, and Update().

void CLibraryFolderCtrl::Update DWORD  nUpdateCookie = 0  ) 
 

Definition at line 90 of file CtrlSharedFolder.cpp.

References CLibraryFolders::CheckFolder(), CLibraryFolders::GetFolderIterator(), CLibraryFolders::GetNextFolder(), LibraryFolders, m_hRoot, and NULL.

Referenced by CFileCopyDlg::OnInitDialog(), CFileCopyDlg::OnTimer(), and Update().


Member Data Documentation

BOOL CLibraryFolderCtrl::m_bFirstClick [protected]
 

Definition at line 41 of file CtrlSharedFolder.h.

Referenced by OnLButtonDown().

BOOL CLibraryFolderCtrl::m_bMultiSelect [protected]
 

Definition at line 42 of file CtrlSharedFolder.h.

Referenced by OnKeyDown(), OnLButtonDblClk(), OnLButtonDown(), SetMultiSelect(), and Update().

BOOL CLibraryFolderCtrl::m_bSaveExpand [protected]
 

Definition at line 43 of file CtrlSharedFolder.h.

Referenced by OnItemExpanded(), and SetSaveExpand().

HTREEITEM CLibraryFolderCtrl::m_hFirstSelected [protected]
 

Definition at line 40 of file CtrlSharedFolder.h.

Referenced by OnCreate(), OnKeyDown(), and OnLButtonDown().

HTREEITEM CLibraryFolderCtrl::m_hRoot [protected]
 

Definition at line 39 of file CtrlSharedFolder.h.

Referenced by GetNextSelectedFolder(), OnCreate(), SetSelectedCookie(), and Update().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:08 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2