www.pudn.com > fastplayer-0.1.zip > FastPlayerView.h, change:2002-01-08,size:2798b


// FastPlayerView.h : interface of the CFastPlayerView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_FASTPLAYERVIEW_H__5D5329F9_B23D_4781_AB37_9BEB64F382F9__INCLUDED_) 
#define AFX_FASTPLAYERVIEW_H__5D5329F9_B23D_4781_AB37_9BEB64F382F9__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
 
class CFastPlayerView : public ETSLayoutFormView 
{ 
protected: // create from serialization only 
	CFastPlayerView(); 
	DECLARE_DYNCREATE(CFastPlayerView) 
 
public: 
	//{{AFX_DATA(CFastPlayerView) 
	enum { IDD = IDD_FASTPLAYER_FORM }; 
	CSliderCtrl	m_Volume; 
	CSliderCtrl	m_Progress; 
	//}}AFX_DATA 
 
// Attributes 
public: 
	CFastPlayerDoc* GetDocument(); 
	CButtonST m_btnPlay; 
	CButtonST m_btnPause; 
	CButtonST m_btnStop; 
	CButtonST m_btnMute; 
	CButtonST m_btnFullScreen; 
	CButtonST m_btnResetSize; 
	CButtonST m_btnOptions; 
	CButtonST m_btnFilters; 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CFastPlayerView) 
	public: 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	virtual void OnInitialUpdate(); // called first time after construct 
	virtual void OnDraw(CDC* pDC); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	void ResizeToVideoSize(int nWidthFactor = 100, int nHeightFactor = 100); 
	virtual ~CFastPlayerView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
	BOOL m_bAlreadySubclassed; 
	BOOL m_bDisableVideoResize; 
	BOOL m_bTimerActivated; 
	BOOL m_bProgressMovement; 
 
	void ResizeParentToFit2(LONG lWidth, LONG lHeight); 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CFastPlayerView) 
	afx_msg void OnSize(UINT nType, int cx, int cy); 
	afx_msg void OnPause(); 
	afx_msg void OnStop(); 
	afx_msg void OnPlay(); 
	afx_msg void OnTimer(UINT nIDEvent); 
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); 
	afx_msg void OnMute(); 
	afx_msg void OnFullscreen(); 
	afx_msg void OnVolumeUp(); 
	afx_msg void OnVolumeDown(); 
	afx_msg void OnResetSize(); 
	afx_msg void OnFilters(); 
	afx_msg void OnOptions(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in FastPlayerView.cpp 
inline CFastPlayerDoc* CFastPlayerView::GetDocument() 
   { return (CFastPlayerDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_FASTPLAYERVIEW_H__5D5329F9_B23D_4781_AB37_9BEB64F382F9__INCLUDED_)