- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
OpenGLMFCView.h
资源名称:OpenGLMFC.rar [点击查看]
上传用户:yanjing
上传日期:2022-06-12
资源大小:36k
文件大小:2k
源码类别:
OpenGL
开发平台:
Visual C++
- // OpenGLMFCView.h : interface of the COpenGLMFCView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_OPENGLMFCVIEW_H__787A9476_55B6_4B22_A48D_12179EF8B799__INCLUDED_)
- #define AFX_OPENGLMFCVIEW_H__787A9476_55B6_4B22_A48D_12179EF8B799__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /////////////////////////////////////////////
- #include <gl/gl.h>
- #include <gl/glu.h>
- #include <gl/glaux.h>
- #include <math.h>
- /////////////////////////////////////////////
- class COpenGLMFCView : public CScrollView
- {
- protected: // create from serialization only
- COpenGLMFCView();
- DECLARE_DYNCREATE(COpenGLMFCView)
- // Attributes
- public:
- COpenGLMFCDoc* GetDocument();
- //*******************************************
- public:
- HGLRC hglrc;
- void drawwithopengl(void);
- //*******************************************
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(COpenGLMFCView)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
- protected:
- virtual void OnInitialUpdate(); // called first time after construct
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~COpenGLMFCView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- //{{AFX_MSG(COpenGLMFCView)
- afx_msg void OnDestroy();
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- #ifndef _DEBUG // debug version in OpenGLMFCView.cpp
- inline COpenGLMFCDoc* COpenGLMFCView::GetDocument()
- { return (COpenGLMFCDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_OPENGLMFCVIEW_H__787A9476_55B6_4B22_A48D_12179EF8B799__INCLUDED_)