www.pudn.com > LECTEUR-MP3.zip > MusGestView.h


// MusGestView.h : interface of the CMusGestView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_MUSGESTVIEW_H__75AA0F39_F376_4061_803B_399ABDC896EF__INCLUDED_) 
#define AFX_MUSGESTVIEW_H__75AA0F39_F376_4061_803B_399ABDC896EF__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "MusGestDoc.h" 
#include "afxcView.h" 
#include "RepExplorer.h" 
#include "FileView.h" 
 
 
class CMusGestView : public CTreeView 
{ 
protected: // create from serialization only 
	CMusGestView(); 
	DECLARE_DYNCREATE(CMusGestView) 
 
// Attributes 
public: 
	CMusGestDoc* GetDocument(); 
 
	void Start(CString strRep); 
	void InitTree(CRep * pRep, HTREEITEM hItem); 
 
	void CreateFolder(CString strNewFolderName); 
 
	CListCtrl& GetListCtrl(); 
	CFileView * GetFileView(); 
 
	void OnNewFolder(); 
	void OnDeleteFolder(); 
	void OnRenameFolder(); 
	void OnCopyFolder(); 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMusGestView) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	virtual void OnInitialUpdate(); 
	protected: 
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); 
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); 
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); 
	//}}AFX_VIRTUAL 
 
 
	HTREEITEM m_hInPlayItem; 
	CRepExplorer m_RepExplor; 
 
// Implementation 
public: 
	virtual ~CMusGestView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
	CImageList * m_pImageList; 
 
// Generated message map functions 
protected: 
 
	//{{AFX_MSG(CMusGestView) 
	afx_msg void OnRClick(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnSelChange(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg LRESULT OnPlayFolder(WPARAM w, LPARAM l); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in MusGestView.cpp 
inline CMusGestDoc* CMusGestView::GetDocument() 
   { return (CMusGestDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_MUSGESTVIEW_H__75AA0F39_F376_4061_803B_399ABDC896EF__INCLUDED_)