⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 curvthrd.h

📁 是一本很经典的书
💻 H
字号:
///////////////////////////////////////////////////////////////////
//  Header  : CURVTHRD.H
//
//  Purpose : Header for the CCurveThread class.
//
//  Author  : Rob McGregor, rob_mcgregor@compuserve.com
//        
//  Date    : 06-19-96
///////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "colors.h"

#define MAXPOINTS 12

typedef enum 
{ 
   dirLeftUp,  
   dirLeftDown,
   dirRightUp, 
   dirRightDown 
}
Direction; 

///////////////////////////////////////////////////////////////////
// Derive a curve thread class 

class CCurveThread : public CWinThread
{ 
public: 
   CCurveThread(HWND hwnd, UINT nMax);
   ~CCurveThread();
   void DrawCurves();
   void UpdatePointPositions();

protected:
   UINT       m_nVelocityX[MAXPOINTS];
   UINT       m_nVelocityY[MAXPOINTS];
   CPoint     m_Point[MAXPOINTS];
   Direction  m_Direction[MAXPOINTS];

   CPen       m_penRed;
   CPen       m_penGreen;
   CPen       m_penBlue;

   HWND       m_hwnd;  // main app window handle

   virtual BOOL InitInstance();
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -