Test1.h
上传用户:wangdan
上传日期:2022-06-30
资源大小:739k
文件大小:2k
- // Test1.h : main header file for the TEST1 application
- //
- #if !defined(AFX_TEST1_H__48BAF0FF_68E2_4D0D_A8C9_AB9ECAFB6A3B__INCLUDED_)
- #define AFX_TEST1_H__48BAF0FF_68E2_4D0D_A8C9_AB9ECAFB6A3B__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #ifndef __AFXWIN_H__
- #error include 'stdafx.h' before including this file for PCH
- #endif
- #include "resource.h" // main symbols
- //允许设置OpenGL
- #include <GL/gl.h>
- #include <GL/glaux.h>
- #include <gl/glu.h>
- //定义几种常用颜色
- const COLORREF RED = RGB(255,0,0);
- const COLORREF GREEN = RGB(0,255,0);
- const COLORREF BLUE = RGB(0,0,255);
- const COLORREF YELLOW = RGB(255,255,0);
- const COLORREF BLACK = RGB(0,0,0);
- const COLORREF WHITE = RGB(255,255,255);
- const COLORREF BRIGHT = RGB(100,100,100);
- const COLORREF GRAY = RGB(0,255,255);
- //向进度条发送的消息
- const int MESSAGE_STEPPRO = WM_USER + 102;
- //向控制台发送消息使按钮可用
- const int MESSAGE_ENABLEBTN = WM_USER + 103;
- //向控制台发送消息使按钮不可用
- const int MESSAGE_DISABLEBTN = WM_USER + 104;
- //由主三维窗口发给三维投影窗口的消息,通知坐标倾角发生了变化.
- const int MESSAGE_ANGLECHANGING = WM_USER+105;
- //通告各窗口数据读取已完成
- const int MESSAGE_GETDATAFINISHED = WM_USER+106;
- //通知投影窗口位图已拷贝完成,需要进行显示
- const int MESSAGE_BMPHASBECOPIED = WM_USER+107;
- //数组大小
- const int ArrayOne = 20000;
- const int ArrayTwo = 16;
- /////////////////////////////////////////////////////////////////////////////
- // CTest1App:
- // See Test1.cpp for the implementation of this class
- //
- class CTest1App : public CWinApp
- {
- public:
- CTest1App();
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CTest1App)
- public:
- virtual BOOL InitInstance();
- //}}AFX_VIRTUAL
- // Implementation
- //{{AFX_MSG(CTest1App)
- afx_msg void OnAppAbout();
- // NOTE - the ClassWizard will add and remove member functions here.
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_TEST1_H__48BAF0FF_68E2_4D0D_A8C9_AB9ECAFB6A3B__INCLUDED_)