?? text3dview.h
字號:
// Text3DView.h : interface of the CText3DView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_TEXT3DVIEW_H__7B37C54D_7292_11D4_87D5_000021E12E4D__INCLUDED_)
#define AFX_TEXT3DVIEW_H__7B37C54D_7292_11D4_87D5_000021E12E4D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "gl\gl.h"
#include "gl\glu.h"
#include "gl\glaux.h"
class CText3DView : public CView
{
protected: // create from serialization only
CText3DView();
DECLARE_DYNCREATE(CText3DView)
// Attributes
public:
CText3DDoc* GetDocument();
//add down
CClientDC *m_pDC;
// Operations
public:
void Init();
BOOL bSetupPixelFormat(void);
void DrawScene(void);
void extrudeSolidFromPolygon(GLfloat data[][3], unsigned int dataSize,
GLdouble thickness, GLuint side, GLuint edge, GLuint whole);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CText3DView)
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 ~CText3DView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CText3DView)
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
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in Text3DView.cpp
inline CText3DDoc* CText3DView::GetDocument()
{ return (CText3DDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TEXT3DVIEW_H__7B37C54D_7292_11D4_87D5_000021E12E4D__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -