00001 #if !defined(AFX_SHAPEPREVIEWPAGE_H__727FD22F_63DB_4A4B_9861_E80AD3D2BB9B__INCLUDED_)
00002 #define AFX_SHAPEPREVIEWPAGE_H__727FD22F_63DB_4A4B_9861_E80AD3D2BB9B__INCLUDED_
00003
00004 #include "Shape.h"
00005
00006 #if _MSC_VER >= 1000
00007 #pragma once
00008 #endif // _MSC_VER >= 1000
00009
00010
00011
00013
00014
00015 class CShapePreviewPage : public CPropertyPage
00016 {
00017 DECLARE_DYNCREATE(CShapePreviewPage)
00018
00019
00020 public:
00021 void SetFPS(int fps);
00022 void SetStartEndFrames(int nstart, int nend);
00023 void SetViewStatus( ScreenState *pState );
00024 void SetShape(VShape *);
00025 CShapePreviewPage();
00026 ~CShapePreviewPage();
00027
00028
00029
00030 enum { IDD = IDD_SHAPEPREVIEW };
00031
00032
00033
00034
00035
00036
00037
00038
00039 public:
00040 virtual BOOL OnSetActive();
00041 virtual BOOL OnKillActive();
00042 protected:
00043 virtual void DoDataExchange(CDataExchange* pDX);
00044
00045
00046
00047 protected:
00048 VShape* m_pShape;
00049 ScreenState* m_pState;
00050 int m_nCurrentFrame, m_nStartFrame, m_nEndFrame;
00051 bool m_bPlaying;
00052 int m_nFPS;
00053 int m_nMillisecondsOfLastFrame;
00054
00055 CDC m_dcBuf;
00056 CBitmap m_bmpBuf;
00057
00058
00059 afx_msg void OnPaint();
00060 afx_msg void OnTimer(UINT nIDEvent);
00061 virtual BOOL OnInitDialog();
00062 afx_msg void OnDestroy();
00063 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
00064
00065 DECLARE_MESSAGE_MAP()
00066
00067 };
00068
00069
00070
00071
00072 #endif // !defined(AFX_SHAPEPREVIEWPAGE_H__727FD22F_63DB_4A4B_9861_E80AD3D2BB9B__INCLUDED_)