#if !defined(AFX_TESTPGL_H__02996854_8623_11D4_826B_00A024D26A1F__INCLUDED_)
#define AFX_TESTPGL_H__02996854_8623_11D4_826B_00A024D26A1F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h"
class CTestpglApp : public CWinApp
{
public:
CPGLGraph* GenerateGraph();
CTestpglApp( );
void SetIdleView (CView* pView) { m_pIdleView = pView; m_tStart = clock();};
void SetAnimatedLine(CPGLGraph* pGraph)
{ if (!pGraph) m_pAnimatedLine =NULL; else m_pAnimatedLine = (CPGLLine2D*)pGraph->FindObject(m_uLineID);};
public:
virtual BOOL InitInstance();
virtual int ExitInstance();
virtual BOOL OnIdle(LONG lCount);
afx_msg void OnAppAbout();
DECLARE_MESSAGE_MAP()
protected:
void AnimateLine();
ULONG_PTR m_ulGdiplusToken;
CView* m_pIdleView;
CPGLLine2D* m_pAnimatedLine;
clock_t m_tStart;
UINT m_uLineID;
};
#endif