www.pudn.com > LECTEUR-MP3.zip > PlayListView.h
#if !defined(AFX_PLAYLISTVIEW_H__DDF6DD6C_BE7A_4CEB_BF88_FD6A9A8EB20F__INCLUDED_)
#define AFX_PLAYLISTVIEW_H__DDF6DD6C_BE7A_4CEB_BF88_FD6A9A8EB20F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PlayListView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CPlayListView view
#include "afxcView.h"
#include "FileView.h"
#include "MusGestDoc.h"
#include "RepExplorer.h"
#include "WorkerThread.h"
//--------------------------------------------------------------------------------
class CPlayListView : public CListView
{
protected:
CPlayListView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CPlayListView)
// Attributes
public:
CMusGestDoc * m_pDoc;
// Operations
public:
void InsertItem(CRepFile * pRepFile);
void OnPlayFile();
void OnSuppFile();
void OnStopFile();
void OnUpItem();
void OnDownItem();
void MoveItem(bool bUpItem);
bool IsPlaying();
CRepFile * GetInPlayFile() {return m_pInPlayFile;}
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPlayListView)
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
//}}AFX_VIRTUAL
int GetSelectedItem();
void SetStatusBarText(CString strText, int iPane);
// Implementation
protected:
virtual ~CPlayListView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
virtual void OnInitialUpdate();
int m_iInPlayItem;
CWorkerThread * m_pThread;
CAudioFile * m_pInPlayFile;
CImageList * m_pImageList;
CString m_strTime;
// Generated message map functions
protected:
//{{AFX_MSG(CPlayListView)
afx_msg void OnRclick(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg LRESULT OnNext(WPARAM w, LPARAM l);
afx_msg LRESULT OnStopThread(WPARAM w, LPARAM l);
afx_msg LRESULT OnMajTime(WPARAM w, LPARAM l);
afx_msg LRESULT OnChangeSoundPos(WPARAM w, LPARAM l);
afx_msg void OnItemdblclick(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PLAYLISTVIEW_H__DDF6DD6C_BE7A_4CEB_BF88_FD6A9A8EB20F__INCLUDED_)