?? dlgproxy.cpp
字號:
// DlgProxy.cpp : implementation file
//
#include "stdafx.h"
#include "ARMUpdate.h"
#include "DlgProxy.h"
#include "ARMUpdateDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CARMUpdateDlgAutoProxy
IMPLEMENT_DYNCREATE(CARMUpdateDlgAutoProxy, CCmdTarget)
CARMUpdateDlgAutoProxy::CARMUpdateDlgAutoProxy()
{
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(CARMUpdateDlg, AfxGetApp()->m_pMainWnd);
m_pDialog = (CARMUpdateDlg*) AfxGetApp()->m_pMainWnd;
m_pDialog->m_pAutoProxy = this;
}
CARMUpdateDlgAutoProxy::~CARMUpdateDlgAutoProxy()
{
// 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 CARMUpdateDlgAutoProxy::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(CARMUpdateDlgAutoProxy, CCmdTarget)
//{{AFX_MSG_MAP(CARMUpdateDlgAutoProxy)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BEGIN_DISPATCH_MAP(CARMUpdateDlgAutoProxy, CCmdTarget)
//{{AFX_DISPATCH_MAP(CARMUpdateDlgAutoProxy)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()
// Note: we add support for IID_IARMUpdate to support typesafe binding
// from VBA. This IID must match the GUID that is attached to the
// dispinterface in the .ODL file.
// {A6B6A847-A113-44BA-9C83-7A044C15A9E1}
static const IID IID_IARMUpdate =
{ 0xa6b6a847, 0xa113, 0x44ba, { 0x9c, 0x83, 0x7a, 0x4, 0x4c, 0x15, 0xa9, 0xe1 } };
BEGIN_INTERFACE_MAP(CARMUpdateDlgAutoProxy, CCmdTarget)
INTERFACE_PART(CARMUpdateDlgAutoProxy, IID_IARMUpdate, Dispatch)
END_INTERFACE_MAP()
// The IMPLEMENT_OLECREATE2 macro is defined in StdAfx.h of this project
// {071A81C3-DABE-47C4-A0D5-0A6AB015E16A}
IMPLEMENT_OLECREATE2(CARMUpdateDlgAutoProxy, "ARMUpdate.Application", 0x71a81c3, 0xdabe, 0x47c4, 0xa0, 0xd5, 0xa, 0x6a, 0xb0, 0x15, 0xe1, 0x6a)
/////////////////////////////////////////////////////////////////////////////
// CARMUpdateDlgAutoProxy message handlers
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -