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

📄 stkappsink.h

📁 本代码为使用vc平台开发stk软件x插件的一个范例。
💻 H
字号:
/******************************************************************************/
/*****       Copyright 2004-2004, Analytical Graphics, Incorporated.      *****/
/******************************************************************************/
#if !defined(AFX_STKAPPSINK_H__D5DC4F6A_867E_476D_9D45_C23E4C95B646__INCLUDED_)
#define AFX_STKAPPSINK_H__D5DC4F6A_867E_476D_9D45_C23E4C95B646__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// STKAppSink.h : header file
//


// from type lib
const IID DIID_IAgSTKXApplicationEvents = {0x207E59B4,0x1AB9,0x4981,{0x9B,0x54,0xC6,0x5E,0x36,0x8A,0x30,0xC5}};
const IID IID_IAgSTKXApplication = {0xD3D81285,0xF483,0x4A0D,{0xA5,0x69,0x45,0x0D,0x32,0x3C,0x40,0x52}};


typedef /* [public][public] */ 
enum __MIDL___MIDL_itf_AgUiAxVO_0000_0003
    {	eLogMsgDebug	= 0,
	eLogMsgInfo	= 1,
	eLogMsgForceInfo	= 2,
	eLogMsgWarning	= 3,
	eLogMsgAlarm	= 4
    }	AgELogMsgType;

typedef /* [public][public] */ 
enum __MIDL___MIDL_itf_AgUiAxVO_0000_0004
    {	eLogMsgDispAll	= -1,
	eLogMsgDispDefault	= 0,
	eLogMsgDispMsgWin	= 1,
	eLogMsgDispStatusBar	= 2
    }	AgELogMsgDispID;


/////////////////////////////////////////////////////////////////////////////
// CSTKAppSink command target

class CSTKAppSink : public CCmdTarget
{
	DECLARE_DYNCREATE(CSTKAppSink)

	CSTKAppSink();           // protected constructor used by dynamic creation

// Attributes
public:
	virtual ~CSTKAppSink();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSTKAppSink)
	public:
	virtual void OnFinalRelease();
	//}}AFX_VIRTUAL

// Implementation
protected:
	void OnScenarioNew(BSTR path);
	void OnScenarioLoad(BSTR path);
	void OnScenarioClose();
	void OnScenarioSave(BSTR path);
	void OnLogMessage(	BSTR				bstrMsg, 
						AgELogMsgType		eType, 
						long				lErrorCode, 
						BSTR				bstrFileName, 
						long				lLineNo, 
						AgELogMsgDispID		eDispID);

	// Generated message map functions
	//{{AFX_MSG(CSTKAppSink)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
	// Generated OLE dispatch map functions
	//{{AFX_DISPATCH(CSTKAppSink)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_DISPATCH
	DECLARE_DISPATCH_MAP()
	DECLARE_INTERFACE_MAP()
};

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

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

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

⌨️ 快捷键说明

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