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

📄 cppmdi.h

📁 本代码为使用vc平台开发stk软件x插件的一个范例。
💻 H
字号:
/******************************************************************************/
/*****       Copyright 2004-2004, Analytical Graphics, Incorporated.      *****/
/******************************************************************************/
// CPPMDI.h : main header file for the MDI CPP application
//

#if !defined(AFX_CPPMDI_H__1FFDA8E6_A128_49A5_89F3_3B59AE039857__INCLUDED_)
#define AFX_CPPMDI_H__1FFDA8E6_A128_49A5_89F3_3B59AE039857__INCLUDED_

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

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "MainFrm.h"

#include "resource.h"       // main symbols
#include "agstkxapplication.h"
#include "MessageViewerDialog.h"
#include "STKAppSink.h"


/////////////////////////////////////////////////////////////////////////////
// CCPPMDIApp:
// See CPPMDI.cpp for the implementation of this class
//

class CCPPMDIApp : public CWinApp
{
public:
	CCPPMDIApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCPPMDIApp)
	public:
	virtual BOOL InitInstance();
	virtual int ExitInstance();
	//}}AFX_VIRTUAL

// Implementation
	//{{AFX_MSG(CCPPMDIApp)
	afx_msg void OnAppAbout();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

public:
	CMultiDocTemplate		*m_VODocTemplate;			// document template for VO window
	CMultiDocTemplate		*m_2DDocTemplate;			// document template for 2D window
	CAgSTKXApplication		 m_STKApplication;
	CMessageViewerDialog	 m_MsgViewDlg;

	bool SendSTKCommand(LPCTSTR command);		// send a connect comand to STK application

	CMainFrame *GetMainFrame(void)
	{
		CMainFrame *pMainFrm = dynamic_cast<CMainFrame *>(GetMainWnd());
		ASSERT(pMainFrm);

		return pMainFrm;
	}
private:
	DWORD					 m_dwCookie;
	CSTKAppSink				 m_STKAppSink;
};


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

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

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

⌨️ 快捷键说明

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