📄 elementmanager.cpp
字号:
// ElementManager.cpp: implementation of the CElementManager class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "ElementManager.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CElementManager::CElementManager()
{
}
CElementManager::~CElementManager()
{
}
BOOL CElementManager::AddElement( CElementBase * pElement )
{
return FALSE;
}
BOOL CElementManager::RemoveElement( CElementBase * pElement )
{
return FALSE;
}
CElementArray * CElementManager::SearchElement( CRect2D & rect , eElementSearchType SearchType )
{
return NULL;
}
BOOL CElementArray::InsertElement( CElementBase * pElementBase )
{
return FALSE;
}
void CElementArray::Free()
{
}
void CElementArray::ProElement( CALLBACKProElement * pCallBack )
{
}
CElementArray * CElementArray::GetElementNext( eElementNextType eNextType )
{
return NULL;
}
void CElementArray::Append( CElementArray * ElementArray , eAppendElementType isChengeMaster)
{
CElementArray * pEleArray = ElementArray
for( )
}
//加一个元素数组
void CElementArray::InsertChildEleArray ( CElementArray * pElmArray )
{
if ( m_h.pNextChildElementBase == NULL )
{
m_h.pNextChildElementBase = pElmArray
}
else
{
m_h.pNextChildElementBase->InsertBrotherEleArray( pElmArray );
}
}
void CElementArray::InsertBrotherEleArray ( CElementArray * pElmArray )
{
if ( m_h.pNextBrotherElementBase == NULL )
{
m_h.pNextBrotherElementBase = pElmArray
}
else
{
m_h.pNextBrotherElementBase->InsertBrotherEleArray( pElmArray );
}
}
CRect2D CElementArray::GetEleArrayRect(BOOL isOne )
{
CRect2D rect ;
if ( isOne )
{
GetEleArrayChildRect( rect );
}
else
{
GetEleArrayBrotherRect( rect );
}
return rect;
}
void CElementArray::GetEleArrayChildRect(CRect2D & rect )
{
rect += m_pElementBase->GetElementRect();
if ( m_h.pNextChildElementBase )
{
m_h.pNextChildElementBase->GetEleArrayChildRect( rect );
}
}
void CElementArray::GetEleArrayBrotherRect(CRect2D & rect )
{
CRect2D retrect;
GetEleArrayChildRect( retrect );
rect += retrect;
if ( m_h.pNextBrotherElementBase )
{
m_h.pNextBrotherElementBase->GetEleArrayBrotherRect( rect );
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -