00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #if !defined(AFX_CTRLLIBRARYTREEVIEW_H__C1190F39_DB7E_4407_A958_1D3E90EF7318__INCLUDED_)
00023 #define AFX_CTRLLIBRARYTREEVIEW_H__C1190F39_DB7E_4407_A958_1D3E90EF7318__INCLUDED_
00024
00025 #pragma once
00026
00027 #include "CtrlLibraryTree.h"
00028 #include "CtrlTipFolder.h"
00029 #include "CtrlTipAlbum.h"
00030
00031
00032 class CLibraryTreeView : public CLibraryTreeCtrl
00033 {
00034
00035 public:
00036 CLibraryTreeView();
00037 virtual ~CLibraryTreeView();
00038
00039 DECLARE_DYNAMIC(CLibraryTreeView)
00040
00041
00042 public:
00043 BOOL m_bVirtual;
00044 CFolderTipCtrl m_wndFolderTip;
00045 CAlbumTipCtrl m_wndAlbumTip;
00046
00047
00048 public:
00049 void SetVirtual(BOOL bVirtual);
00050 void Update(DWORD nSelectCookie);
00051 BOOL SelectFolder(LPVOID pSearch);
00052 BOOL DropShowTarget(CLibraryList* pList, const CPoint& point);
00053 BOOL DropObjects(CLibraryList* pList, BOOL bCopy, CSingleLock& oLock);
00054 protected:
00055 void PostUpdate();
00056 void UpdatePhysical(DWORD nSelectCookie);
00057 void UpdateVirtual(DWORD nSelectCookie);
00058 BOOL Update(CLibraryFolder* pFolder, CLibraryTreeItem* pItem, CLibraryTreeItem* pParent, BOOL bVisible, BOOL bShared, DWORD nCleanCookie, DWORD nSelectCookie, BOOL bRecurse);
00059 BOOL Update(CAlbumFolder* pFolder, CLibraryTreeItem* pItem, CLibraryTreeItem* pParent, BOOL bVisible, DWORD nCleanCookie, DWORD nSelectCookie);
00060
00061
00062 public:
00063
00064 public:
00065 virtual BOOL PreTranslateMessage(MSG* pMsg);
00066
00067
00068
00069 protected:
00070
00071 afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
00072 afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
00073 afx_msg void OnUpdateLibraryParent(CCmdUI* pCmdUI);
00074 afx_msg void OnLibraryParent();
00075 afx_msg void OnUpdateLibraryExplore(CCmdUI* pCmdUI);
00076 afx_msg void OnLibraryExplore();
00077 afx_msg void OnUpdateLibraryScan(CCmdUI* pCmdUI);
00078 afx_msg void OnLibraryScan();
00079 afx_msg void OnUpdateLibraryShared(CCmdUI* pCmdUI);
00080 afx_msg void OnLibraryShared();
00081 afx_msg void OnLibraryAdd();
00082 afx_msg void OnUpdateLibraryRemove(CCmdUI* pCmdUI);
00083 afx_msg void OnLibraryRemove();
00084 afx_msg void OnUpdateLibraryFolderProperties(CCmdUI* pCmdUI);
00085 afx_msg void OnLibraryFolderProperties();
00086 afx_msg void OnUpdateLibraryFolderNew(CCmdUI* pCmdUI);
00087 afx_msg void OnLibraryFolderNew();
00088 afx_msg void OnUpdateLibraryFolderDelete(CCmdUI* pCmdUI);
00089 afx_msg void OnLibraryFolderDelete();
00090 afx_msg void OnUpdateLibraryFolderMetadata(CCmdUI* pCmdUI);
00091 afx_msg void OnLibraryFolderMetadata();
00092 afx_msg void OnUpdateLibraryFolderEnqueue(CCmdUI* pCmdUI);
00093 afx_msg void OnLibraryFolderEnqueue();
00094 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00095 afx_msg void OnUpdateLibraryFolderFileProperties(CCmdUI* pCmdUI);
00096 afx_msg void OnLibraryFolderFileProperties();
00097 afx_msg void OnUpdateLibraryRebuild(CCmdUI* pCmdUI);
00098 afx_msg void OnLibraryRebuild();
00099
00100
00101 DECLARE_MESSAGE_MAP()
00102
00103 public:
00104 afx_msg void OnUpdateLibraryExportCollection(CCmdUI *pCmdUI);
00105 afx_msg void OnLibraryExportCollection();
00106 };
00107
00108
00109
00110 #endif