📄 childoglview.h
字号:
#if !defined(AFX_CHILDOGLVIEW_H__0BAA312F_7868_46A2_88FE_A92E06325BA8__INCLUDED_)
#define AFX_CHILDOGLVIEW_H__0BAA312F_7868_46A2_88FE_A92E06325BA8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ChildOGLView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CChildOGLView form view
#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
#include "edit3dmdoc.h"
class CChildOGLView : public CFormView
{
protected:
CChildOGLView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CChildOGLView)
// Form Data
public:
//{{AFX_DATA(CChildOGLView)
enum { IDD = IDD_CHILDOGLVIEW };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
//Get document to get data
CEdit3DMDoc* GetDocument();
private:
//Add this view to the document
//[childviewA id = 1; childviewB id = 2]
void AddMetoDoc();
// Attributes
public:
//view ID, it will be assigned by parentframe when this program begin
int m_ViewID;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CChildOGLView)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnDraw(CDC* pDC);
//}}AFX_VIRTUAL
////////////////////////////////////////////
//Opengl Setting////////////////////////////
protected:
void init();
bool bSetupPixelFormat();
void DrawScene();
public:
CClientDC* m_pDC;
HGLRC m_hRC;
CRect m_oldRect;
/////////////////////////////////////////////
/////////////////////////////////////////////
public:
//视图类型:可选正视图(VT_FRONT),上试图(VT_TOP),侧视图(VT_LEFTSIDE)
//enum ViewType m_viewtype;
// Implementation
protected:
virtual ~CChildOGLView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(CChildOGLView)
afx_msg void OnDestroy();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CHILDOGLVIEW_H__0BAA312F_7868_46A2_88FE_A92E06325BA8__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -