📄 jyp3041222042view.h
字号:
// Jyp3041222042View.h : interface of the CJyp3041222042View class
//
/////////////////////////////////////////////////////////////////////////////
#include "gl/gl.h"
#include "gl/glu.h"
#include "gl/glut.h"
#if !defined(AFX_Jyp3041222042VIEW_H__9B085532_6013_4FB3_BEAD_C0432E0120A7__INCLUDED_)
#define AFX_Jyp3041222042VIEW_H__9B085532_6013_4FB3_BEAD_C0432E0120A7__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CJyp3041222042View : public CView
{
protected: // create from serialization only
CJyp3041222042View();
DECLARE_DYNCREATE(CJyp3041222042View)
// Attributes
public:
CJyp3041222042Doc* GetDocument();
protected:
CDC *m_pDC;
HGLRC m_hRC;
int flag;
UINT m_timer;
GLfloat m_theta[3];
GLint m_axis;
void DrawScene();
BOOL SetupPixelFormat(PIXELFORMATDESCRIPTOR *pPFD=0);
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CJyp3041222042View)
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 ~CJyp3041222042View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CJyp3041222042View)
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 void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnTeapot1();
afx_msg void OnTeapot2();
afx_msg void OnTeapot3();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in Jyp3041222042View.cpp
inline CJyp3041222042Doc* CJyp3041222042View::GetDocument()
{ return (CJyp3041222042Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_Jyp3041222042VIEW_H__9B085532_6013_4FB3_BEAD_C0432E0120A7__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -