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

📄 xoffice.h

📁 使office整合到自己的应用程序中
💻 H
字号:
// XOffice.h : main header file for the XOFFICE application
//

#if !defined(AFX_XOFFICE_H__04DE977C_E920_11D3_8D22_0000E8D9FD76__INCLUDED_)
#define AFX_XOFFICE_H__04DE977C_E920_11D3_8D22_0000E8D9FD76__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 "resource.h"       // main symbols
#include "XOffice_i.h"

/////////////////////////////////////////////////////////////////////////////
// CXOfficeApp:
// See XOffice.cpp for the implementation of this class
//

class ATL_NO_VTABLE CXOfficeApp : public CWinApp,
	public CComObjectRootEx<CComSingleThreadModel>,
  public CComCoClass<CXOfficeApp, &CLSID_Application>,
  public IConnectionPointContainerImpl<CXOfficeApp>,
  public IDispatchImpl<IApplication, &IID_IApplication, &LIBID_XOfficeLib>
{
	friend class CXOfficeDoc;
public:
	CXOfficeApp();

	CXOfficeDoc *m_active;

DECLARE_CLASSFACTORY_SINGLETON(CXOfficeApp)

DECLARE_REGISTRY_RESOURCEID(IDR_APPLICATION)
DECLARE_NOT_AGGREGATABLE(CXOfficeApp)

DECLARE_PROTECT_FINAL_CONSTRUCT()

BEGIN_COM_MAP(CXOfficeApp)
	COM_INTERFACE_ENTRY(IApplication)
	COM_INTERFACE_ENTRY(IDispatch)
	COM_INTERFACE_ENTRY(IConnectionPointContainer)
END_COM_MAP()
BEGIN_CONNECTION_POINT_MAP(CXOfficeApp)
END_CONNECTION_POINT_MAP()

// IApplication
public:
	STDMETHOD(get_IsActiveDocument)(/*[out, retval]*/ BOOL *pVal);
	STDMETHOD(get_ActiveDocument)(/*[out, retval]*/ IDocument* *pVal);

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

// Implementation
  //{{AFX_MSG(CXOfficeApp)
	afx_msg void OnAppAbout();
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


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

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

#endif // !defined(AFX_XOFFICE_H__04DE977C_E920_11D3_8D22_0000E8D9FD76__INCLUDED_)

⌨️ 快捷键说明

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