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

📄 wraplist.cpp

📁 miXo is a buzz machine (www.buzzmachines.com) - a plugin for the freely available jeskola buzz track
💻 CPP
字号:
// WrapList.cpp: implementation of the CWrapList class.
//
//////////////////////////////////////////////////////////////////////
#include <assert.h>
#include "stdafx.h"
#include "mixer.h"
#include "WrapList.h"


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

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CWrapList::CWrapList() : m_lstWrapWin()
{

}

CWrapList::~CWrapList()
{

}
void CWrapList::ForgetHandles()
{
	for(TLstWrapWin::iterator ite=m_lstWrapWin.begin();ite<m_lstWrapWin.end();ite++) 
		ite->ForgetHandle();
}
void CWrapList::ForgetPointers()
{
	for(TLstWrapWin::iterator ite=m_lstWrapWin.begin();ite<m_lstWrapWin.end();ite++) 
		ite->ForgetPointer();
}
void CWrapList::ForgetHandlesAndPointers()
{
	for(TLstWrapWin::iterator ite=m_lstWrapWin.begin();ite<m_lstWrapWin.end();ite++) 
	{
		ite->ForgetHandle();
		ite->ForgetPointer();
	}
}
void CWrapList::DeInitWindows()
{
	for(TLstWrapWin::iterator ite=m_lstWrapWin.begin();ite<m_lstWrapWin.end();ite++) 
		ite->DeInit();
}
void CWrapList::AddWin(const CWrapChild *pc)
{
	CWrapWin *p=Find(pc);
	if(p) {
		p->SetChildData(pc);
		return;
	}
	const char *szModule=NULL;
	assert(pc);
	if(pc->GetPointer())
		szModule=pc->GetPointer()->GetModuleName();
	CWrapWin cWin(pc,szModule);
	m_lstWrapWin.push_back(cWin);
}
CWrapWin *CWrapList::Find(const CWrapChild *pc) const
{
	assert(pc);
	for(TLstWrapWin::iterator ite=m_lstWrapWin.begin();ite<m_lstWrapWin.end();ite++) 
	{
		if(ite->IsEqualChild(*pc))
			return &(*ite);
	}
	return NULL;
}
void CWrapList::CreateChild(HWND h,const CWrapChild *c,const CWinRect &r)
{
	CWrapWin *p=Find(c);
	if(p != NULL) 
	{
		p->Init(h);
		p->SetWindowRect(r);
		p->Create();
	}
}

⌨️ 快捷键说明

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