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


#if !defined(AFX_FILEVIEW_H__51E0D43F_2B22_46A1_91CA_A6BB3244C408__INCLUDED_) 
#define AFX_FILEVIEW_H__51E0D43F_2B22_46A1_91CA_A6BB3244C408__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// FileView.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CFileView view 
 
#include "afxcView.h" 
#include "RepExplorer.h" 
#include "PlayListView.h" 
#include "WorkerThread.h" 
 
 
class CWorkerThread; 
class CFileView : public CListView 
{ 
protected: 
	CFileView();           // protected constructor used by dynamic creation 
	DECLARE_DYNCREATE(CFileView) 
 
// Attributes 
public: 
 
// Operations 
public: 
 
	void InsertItem(int nItem, CRepFile * pRepFile); 
	void RemoveAllItem(); 
 
	void OnPlayFile(); 
	void OnPauseFile(); 
	void OnStopFile(); 
 
	void OnDownVolume(); 
	void OnUpVolume(); 
	void ChangeVolume(float fVol); 
 
	void OnAddPlayList(); 
 
	void ReInit(); 
 
	CRepFile * GetSelectedRepFile(); 
	CRepFile * GetInPlayFile() {return m_pFileInPlay;} 
	 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CFileView) 
	protected: 
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view 
	//}}AFX_VIRTUAL 
private : 
 
	void SetStatusBarText(CString strText, int iPane); 
	int GetSelectedItem(); 
 
// Implementation 
protected: 
	virtual ~CFileView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
	virtual void OnInitialUpdate();  
 
	#ifndef _DEBUG  // debug version in MusGestView.cpp 
CDocument * CFileView::GetDocument() 
   { return (CDocument*)m_pDocument; } 
#endif 
 
 
	// Generated message map functions 
protected: 
 
	CWorkerThread * m_pThread; 
 
	CImageList * m_pImageList; 
	CAudioFile * m_pFileInPlay; 
 
	CString m_strTime; 
 
	//{{AFX_MSG(CFileView) 
		afx_msg void OnRclick(NMHDR* pNMHDR, LRESULT* pResult); 
		afx_msg LRESULT OnMajTime(WPARAM w, LPARAM l); 
		afx_msg LRESULT OnStopThread(WPARAM w, LPARAM l); 
		afx_msg LRESULT OnChangeSoundPos(WPARAM w, LPARAM l); 
		afx_msg LRESULT OnPauseFileMessage(WPARAM w, LPARAM l); 
	afx_msg void OnItemdblclick(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnSize(UINT nType, int cx, int cy); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_FILEVIEW_H__51E0D43F_2B22_46A1_91CA_A6BB3244C408__INCLUDED_)