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

📄 painttoolbar1.cpp

📁 数据结构求最短路径vc++ 实现手动作图
💻 CPP
字号:
// PaintToolbar1.cpp : implementation file
//

#include "stdafx.h"
#include "direction2.h"
#include "PaintToolbar1.h"

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

/////////////////////////////////////////////////////////////////////////////
// CPaintToolbar1

IMPLEMENT_DYNCREATE(CPaintToolbar1, CToolBarCtrl)

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

CPaintToolbar1::~CPaintToolbar1()
{
	// To terminate the application when all objects created with
	// 	with OLE automation, the destructor calls AfxOleUnlockApp.
	
	AfxOleUnlockApp();
}

void CPaintToolbar1::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.

	CToolBarCtrl::OnFinalRelease();
}


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

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

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

// {2F2B1475-9B92-45E7-8C94-0D95DA0BA3C5}
static const IID IID_IPaintToolbar1 =
{ 0x2f2b1475, 0x9b92, 0x45e7, { 0x8c, 0x94, 0xd, 0x95, 0xda, 0xb, 0xa3, 0xc5 } };

BEGIN_INTERFACE_MAP(CPaintToolbar1, CToolBarCtrl)
	INTERFACE_PART(CPaintToolbar1, IID_IPaintToolbar1, Dispatch)
END_INTERFACE_MAP()

// {35E0631E-50EA-4830-87DF-3BC4314FB664}
IMPLEMENT_OLECREATE(CPaintToolbar1, "direction2.PaintToolbar1", 0x35e0631e, 0x50ea, 0x4830, 0x87, 0xdf, 0x3b, 0xc4, 0x31, 0x4f, 0xb6, 0x64)

/////////////////////////////////////////////////////////////////////////////
// CPaintToolbar1 message handlers

⌨️ 快捷键说明

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