www.pudn.com > OpenGL实现三维绘图.rar > MainFrm.h
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__98BEE19C_D252_4AB2_9C74_ABC8D7AD9049__INCLUDED_)
#define AFX_MAINFRM_H__98BEE19C_D252_4AB2_9C74_ABC8D7AD9049__INCLUDED_
#include "Test1View.h"
#include "MySp.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CControlWnd;
class CProjectView;
class CXProject;
class CYProject;
class CZProject;
class CMainFrame : public CFrameWnd
{
protected: // create from serialization only
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
// Attributes
public:
CTest1View *m_pView; //三维空间窗口
CControlWnd *m_pCtrlWnd; //控制台窗口
CProjectView *m_pProView; //任意三维投影窗口
CXProject *m_pXPro; //x投影区
CYProject *m_pYPro; //Y投影区
CZProject *m_pZPro; //Z投影区
MySp m_Sp1,m_Sp2,m_Sp3,m_Sp4;
CFont m_13Font;
CProgressCtrl m_Progress;
BOOL m_bCreat; //进度条是否已创建
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
//}}AFX_VIRTUAL
// Implementation
public:
void InvalidateAllWnd();
void PrecessReadFile(WPARAM wP, LPARAM lp);
void CreateProcess();
void CreateFont();
void GetWndPointer();
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;
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnClose();
//}}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__98BEE19C_D252_4AB2_9C74_ABC8D7AD9049__INCLUDED_)