⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainfrm.h

📁 本代码为使用vc平台开发stk软件x插件的一个范例。
💻 H
字号:
/******************************************************************************/
/*****       Copyright 2004-2004, Analytical Graphics, Incorporated.      *****/
/******************************************************************************/
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAINFRM_H__988D50BA_5456_4437_8A4C_31CBF7798745__INCLUDED_)
#define AFX_MAINFRM_H__988D50BA_5456_4437_8A4C_31CBF7798745__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CMainFrame : public CMDIFrameWnd
{
	DECLARE_DYNAMIC(CMainFrame)
public:
	CMainFrame();

// Attributes
public:
	bool m_IsScenarioLoaded;	

// Operations
public:
	void NewWindows();		// create new VO and 2D windows

// 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;

// Generated message map functions
protected:
	//{{AFX_MSG(CMainFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnFileNewScenario(); 
	afx_msg void OnFileCloseScenario();
	afx_msg void OnFileOpenScenario(); 
	afx_msg void OnAnimateStart();
	afx_msg void OnAnimatePause();
	afx_msg void OnAnimateReset();
	afx_msg void OnUpdateFileNewScenario(CCmdUI* pCmdUI);
	afx_msg void OnUpdateFileOpenScenario(CCmdUI* pCmdUI);
	afx_msg void OnUpdateFileCloseScenario(CCmdUI* pCmdUI);
	afx_msg void OnWindowNew2D();
	afx_msg void OnWindowNewVO();
	afx_msg void OnConnectEnabled();
	afx_msg void OnUpdateConnectEnabled(CCmdUI* pCmdUI);
	afx_msg void OnConnectSetPort();
	afx_msg void OnConnectSend();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	void NewWindow(CMultiDocTemplate *pTemplate);	// creates a new window based on template
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MAINFRM_H__988D50BA_5456_4437_8A4C_31CBF7798745__INCLUDED_)
/******************************************************************************/
/*****       Copyright 2004-2004, Analytical Graphics, Incorporated.      *****/
/******************************************************************************/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -