1
// XPreplayView.h : interface of the CXPreplayView class
3
/////////////////////////////////////////////////////////////////////////////
5
//#include "XPreplayDoc.h"
6
#if !defined(AFX_XPREPLAYVIEW_H__909E260C_85C6_11D5_A796_0000B48FE580__INCLUDED_)
7
#define AFX_XPREPLAYVIEW_H__909E260C_85C6_11D5_A796_0000B48FE580__INCLUDED_
11
#endif // _MSC_VER >= 1000
13
class CXPreplayView : public CScrollView
15
protected: // create from serialization only
17
DECLARE_DYNCREATE(CXPreplayView)
20
CXPreplayDoc* GetDocument();
29
CDC bgDC; // for flickerfree drawing
30
CBitmap bgBitmap; // for flickerfree drawing
34
short *ConvertItem(unsigned char *c_bits);
35
void DrawFrame(CXPreplayDoc::frame *frame);
38
// ClassWizard generated virtual function overrides
39
//{{AFX_VIRTUAL(CXPreplayView)
41
virtual void OnDraw(CDC* pDC); // overridden to draw this view
42
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
44
virtual void OnInitialUpdate(); // called first time after construct
45
virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
50
virtual ~CXPreplayView();
52
virtual void AssertValid() const;
53
virtual void Dump(CDumpContext& dc) const;
71
// Generated message map functions
73
//{{AFX_MSG(CXPreplayView)
74
afx_msg void OnTimer(UINT nIDEvent);
75
afx_msg void OnPlay();
76
afx_msg void OnStop();
77
afx_msg void OnPause();
78
afx_msg void OnReverse();
79
afx_msg void OnRewind();
80
afx_msg void OnForward();
81
afx_msg void OnToend();
82
afx_msg void OnTostart();
83
afx_msg void OnUpdateForward(CCmdUI* pCmdUI);
84
afx_msg void OnUpdatePause(CCmdUI* pCmdUI);
85
afx_msg void OnUpdatePlay(CCmdUI* pCmdUI);
86
afx_msg void OnUpdateReverse(CCmdUI* pCmdUI);
87
afx_msg void OnUpdateRewind(CCmdUI* pCmdUI);
88
afx_msg void OnUpdateStop(CCmdUI* pCmdUI);
89
afx_msg void OnUpdateToend(CCmdUI* pCmdUI);
90
afx_msg void OnUpdateTostart(CCmdUI* pCmdUI);
91
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
92
afx_msg void OnOptionsTrustheader();
93
afx_msg void OnUpdateOptionsTrustheader(CCmdUI* pCmdUI);
94
afx_msg void OnSlowback();
95
afx_msg void OnUpdateSlowback(CCmdUI* pCmdUI);
96
afx_msg void OnSlowplay();
97
afx_msg void OnUpdateSlowplay(CCmdUI* pCmdUI);
98
afx_msg void OnStartframe();
99
afx_msg void OnEndframe();
100
afx_msg void OnUpdateStartframe(CCmdUI* pCmdUI);
101
afx_msg void OnUpdateEndframe(CCmdUI* pCmdUI);
103
DECLARE_MESSAGE_MAP()
106
#ifndef _DEBUG // debug version in XPreplayView.cpp
107
inline CXPreplayDoc* CXPreplayView::GetDocument()
108
{ return (CXPreplayDoc*)m_pDocument; }
111
/////////////////////////////////////////////////////////////////////////////
113
//{{AFX_INSERT_LOCATION}}
114
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
116
#endif // !defined(AFX_XPREPLAYVIEW_H__909E260C_85C6_11D5_A796_0000B48FE580__INCLUDED_)