?? dlgproxy.cpp
字號(hào):
// DlgProxy.cpp : implementation file
//
#include "stdafx.h"
#include "QueryPOI.h"
#include "DlgProxy.h"
#include "QueryPOIDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CQueryPOIDlgAutoProxy
IMPLEMENT_DYNCREATE(CQueryPOIDlgAutoProxy, CCmdTarget)
CQueryPOIDlgAutoProxy::CQueryPOIDlgAutoProxy()
{
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(CQueryPOIDlg, AfxGetApp()->m_pMainWnd);
m_pDialog = (CQueryPOIDlg*) AfxGetApp()->m_pMainWnd;
m_pDialog->m_pAutoProxy = this;
}
CQueryPOIDlgAutoProxy::~CQueryPOIDlgAutoProxy()
{
// 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 CQueryPOIDlgAutoProxy::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(CQueryPOIDlgAutoProxy, CCmdTarget)
//{{AFX_MSG_MAP(CQueryPOIDlgAutoProxy)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BEGIN_DISPATCH_MAP(CQueryPOIDlgAutoProxy, CCmdTarget)
//{{AFX_DISPATCH_MAP(CQueryPOIDlgAutoProxy)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()
// Note: we add support for IID_IQueryPOI to support typesafe binding
// from VBA. This IID must match the GUID that is attached to the
// dispinterface in the .ODL file.
// {6D3124C6-AB28-48D8-82C0-BFB5E5BE8715}
static const IID IID_IQueryPOI =
{ 0x6d3124c6, 0xab28, 0x48d8, { 0x82, 0xc0, 0xbf, 0xb5, 0xe5, 0xbe, 0x87, 0x15 } };
BEGIN_INTERFACE_MAP(CQueryPOIDlgAutoProxy, CCmdTarget)
INTERFACE_PART(CQueryPOIDlgAutoProxy, IID_IQueryPOI, Dispatch)
END_INTERFACE_MAP()
// The IMPLEMENT_OLECREATE2 macro is defined in StdAfx.h of this project
// {F716D471-3D59-44AD-9D7A-70F971EA2EFD}
IMPLEMENT_OLECREATE2(CQueryPOIDlgAutoProxy, "QueryPOI.Application", 0xf716d471, 0x3d59, 0x44ad, 0x9d, 0x7a, 0x70, 0xf9, 0x71, 0xea, 0x2e, 0xfd)
/////////////////////////////////////////////////////////////////////////////
// CQueryPOIDlgAutoProxy message handlers
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -