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

📄 dlgproxy.cpp

📁 用Visual C++ 开发的项目管理系统
💻 CPP
字号:
// DlgProxy.cpp : implementation file
//

#include "stdafx.h"
#include "FileMaSys.h"
#include "DlgProxy.h"
#include "FileMaSysDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CFileMaSysDlgAutoProxy

IMPLEMENT_DYNCREATE(CFileMaSysDlgAutoProxy, CCmdTarget)

CFileMaSysDlgAutoProxy::CFileMaSysDlgAutoProxy()
{
	EnableAutomation();
	
	// To keep the application running as long as an automation 
	//	object is active, the constructor calls AfxOleLockApp.
	AfxOleLockApp();

	// Get access to the dialog through the application's
	//  main window pointer.  Set the proxy's internal pointer
	//  to point to the dialog, and set the dialog's back pointer to
	//  this proxy.
	ASSERT (AfxGetApp()->m_pMainWnd != NULL);
	ASSERT_VALID (AfxGetApp()->m_pMainWnd);
	ASSERT_KINDOF(CFileMaSysDlg, AfxGetApp()->m_pMainWnd);
	m_pDialog = (CFileMaSysDlg*) AfxGetApp()->m_pMainWnd;
	m_pDialog->m_pAutoProxy = this;
}

CFileMaSysDlgAutoProxy::~CFileMaSysDlgAutoProxy()
{
	// To terminate the application when all objects created with
	// 	with automation, the destructor calls AfxOleUnlockApp.
	//  Among other things, this will destroy the main dialog
	if (m_pDialog != NULL)
		m_pDialog->m_pAutoProxy = NULL;
	AfxOleUnlockApp();
}

void CFileMaSysDlgAutoProxy::OnFinalRelease()
{
	// When the last reference for an automation object is released
	// OnFinalRelease is called.  The base class will automatically
	// deletes the object.  Add additional cleanup required for your
	// object before calling the base class.

	CCmdTarget::OnFinalRelease();
}

BEGIN_MESSAGE_MAP(CFileMaSysDlgAutoProxy, CCmdTarget)
	//{{AFX_MSG_MAP(CFileMaSysDlgAutoProxy)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

BEGIN_DISPATCH_MAP(CFileMaSysDlgAutoProxy, CCmdTarget)
	//{{AFX_DISPATCH_MAP(CFileMaSysDlgAutoProxy)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()

// Note: we add support for IID_IFileMaSys to support typesafe binding
//  from VBA.  This IID must match the GUID that is attached to the 
//  dispinterface in the .ODL file.

// {38DB6D94-3C4C-42F1-B9F5-17FD5CA83C4F}
static const IID IID_IFileMaSys =
{ 0x38db6d94, 0x3c4c, 0x42f1, { 0xb9, 0xf5, 0x17, 0xfd, 0x5c, 0xa8, 0x3c, 0x4f } };

BEGIN_INTERFACE_MAP(CFileMaSysDlgAutoProxy, CCmdTarget)
	INTERFACE_PART(CFileMaSysDlgAutoProxy, IID_IFileMaSys, Dispatch)
END_INTERFACE_MAP()

// The IMPLEMENT_OLECREATE2 macro is defined in StdAfx.h of this project
// {5DF84416-F41D-45EE-A9BD-8BA0D8F1E8F5}
IMPLEMENT_OLECREATE2(CFileMaSysDlgAutoProxy, "FileMaSys.Application", 0x5df84416, 0xf41d, 0x45ee, 0xa9, 0xbd, 0x8b, 0xa0, 0xd8, 0xf1, 0xe8, 0xf5)

/////////////////////////////////////////////////////////////////////////////
// CFileMaSysDlgAutoProxy message handlers

⌨️ 快捷键说明

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