📄 ssg_026_01view.h
字号:
// SSG_026_01View.h : interface of the CSSG_026_01View class
//
/////////////////////////////////////////////////////////////////////////////
#include "gl/gl.h"
#include "gl/glu.h"
#include "gl/glut.h"
#if !defined(AFX_SSG_026_01VIEW_H__2E84D54F_B2D9_4D82_9975_B523022B550D__INCLUDED_)
#define AFX_SSG_026_01VIEW_H__2E84D54F_B2D9_4D82_9975_B523022B550D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CSSG_026_01View : public CView
{
protected: // create from serialization only
CSSG_026_01View();
DECLARE_DYNCREATE(CSSG_026_01View)
// Attributes
public:
CSSG_026_01Doc* GetDocument();
protected:
CDC *m_pDC;
HGLRC m_hRC;
UINT m_timer;
GLfloat m_theta[3];
GLint m_axis;
void DrawScene();
BOOL SetupPixelFormat(PIXELFORMATDESCRIPTOR *pPFD=0);
int m_type;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSSG_026_01View)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CSSG_026_01View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CSSG_026_01View)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnDestroy();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void On1();
afx_msg void On2();
afx_msg void On3();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in SSG_026_01View.cpp
inline CSSG_026_01Doc* CSSG_026_01View::GetDocument()
{ return (CSSG_026_01Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SSG_026_01VIEW_H__2E84D54F_B2D9_4D82_9975_B523022B550D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -