📄 dlgproxy.cpp
字号:
// DlgProxy.cpp : implementation file
//
#include "stdafx.h"
#include "KeyGen_长天.h"
#include "DlgProxy.h"
#include "KeyGen_长天Dlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CKeyGen_DlgAutoProxy
IMPLEMENT_DYNCREATE(CKeyGen_DlgAutoProxy, CCmdTarget)
CKeyGen_DlgAutoProxy::CKeyGen_DlgAutoProxy()
{
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(CKeyGen_Dlg, AfxGetApp()->m_pMainWnd);
m_pDialog = (CKeyGen_Dlg*) AfxGetApp()->m_pMainWnd;
m_pDialog->m_pAutoProxy = this;
}
CKeyGen_DlgAutoProxy::~CKeyGen_DlgAutoProxy()
{
// 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 CKeyGen_DlgAutoProxy::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(CKeyGen_DlgAutoProxy, CCmdTarget)
//{{AFX_MSG_MAP(CKeyGen_DlgAutoProxy)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BEGIN_DISPATCH_MAP(CKeyGen_DlgAutoProxy, CCmdTarget)
//{{AFX_DISPATCH_MAP(CKeyGen_DlgAutoProxy)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()
// Note: we add support for IID_IKeyGen_ to support typesafe binding
// from VBA. This IID must match the GUID that is attached to the
// dispinterface in the .ODL file.
// {27C83D15-C424-490F-B3F2-BA800EDA4C5A}
static const IID IID_IKeyGen_ =
{ 0x27c83d15, 0xc424, 0x490f, { 0xb3, 0xf2, 0xba, 0x80, 0xe, 0xda, 0x4c, 0x5a } };
BEGIN_INTERFACE_MAP(CKeyGen_DlgAutoProxy, CCmdTarget)
INTERFACE_PART(CKeyGen_DlgAutoProxy, IID_IKeyGen_, Dispatch)
END_INTERFACE_MAP()
// The IMPLEMENT_OLECREATE2 macro is defined in StdAfx.h of this project
// {B84D4634-F14F-44A8-94EE-4EA06273A9ED}
IMPLEMENT_OLECREATE2(CKeyGen_DlgAutoProxy, "KeyGen_.Application", 0xb84d4634, 0xf14f, 0x44a8, 0x94, 0xee, 0x4e, 0xa0, 0x62, 0x73, 0xa9, 0xed)
/////////////////////////////////////////////////////////////////////////////
// CKeyGen_DlgAutoProxy message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -