Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

ShapePreviewPage.h

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 // ShapePreviewPage.h : header file
00010 //
00011 
00013 // CShapePreviewPage dialog
00014 
00015 class CShapePreviewPage : public CPropertyPage
00016 {
00017         DECLARE_DYNCREATE(CShapePreviewPage)
00018 
00019 // Construction
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 // Dialog Data
00029         //{{AFX_DATA(CShapePreviewPage)
00030         enum { IDD = IDD_SHAPEPREVIEW };
00031                 // NOTE - ClassWizard will add data members here.
00032                 //    DO NOT EDIT what you see in these blocks of generated code !
00033         //}}AFX_DATA
00034 
00035 
00036 // Overrides
00037         // ClassWizard generate virtual function overrides
00038         //{{AFX_VIRTUAL(CShapePreviewPage)
00039         public:
00040         virtual BOOL OnSetActive();
00041         virtual BOOL OnKillActive();
00042         protected:
00043         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00044         //}}AFX_VIRTUAL
00045 
00046 // Implementation
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         // Generated message map functions
00058         //{{AFX_MSG(CShapePreviewPage)
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         //}}AFX_MSG
00065         DECLARE_MESSAGE_MAP()
00066 
00067 };
00068 
00069 //{{AFX_INSERT_LOCATION}}
00070 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00071 
00072 #endif // !defined(AFX_SHAPEPREVIEWPAGE_H__727FD22F_63DB_4A4B_9861_E80AD3D2BB9B__INCLUDED_)

Generated at Wed Aug 29 19:58:55 2001 for Pocket Animator by doxygen1.2.5 written by Dimitri van Heesch, © 1997-2001