📄 mainfrm.h
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__A4851FC9_368A_4482_ABAD_786F3A581FEF__INCLUDED_)
#define AFX_MAINFRM_H__A4851FC9_368A_4482_ABAD_786F3A581FEF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "dockview\viewbar.h"
#include "childoglview.h"
#include "edit3dmview.h"
class CMainFrame : public CFrameWnd
{
protected: // create from serialization only
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected: // control bar embedded members
CStatusBar m_wndStatusBar;
CToolBar m_wndToolBar;
//here we create two dock view bar to hold our two other OpenGL view
//the main OpenGL view is put in CEdit3DMView
CViewBar m_wndChildOGLView1;
CViewBar m_wndChildOGLView2;
public:
//define a pointer pointing to CEdit3DMView (the main view)
CEdit3DMView* m_pMainView;
//Set the view type of each view
ViewArrange m_ViewArrange;
private:
//assign ID for the child view
void AssignViewID();
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnChildoglviewa();
afx_msg void OnUpdateChildoglviewa(CCmdUI* pCmdUI);
afx_msg void OnChildoglviewb();
afx_msg void OnUpdateChildoglviewb(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRM_H__A4851FC9_368A_4482_ABAD_786F3A581FEF__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -