📄 ndtree.cpp
字号:
#include "NDTree.h"
CNDTree::CNDTree()
{
}
void CNDTree::ConstructL(CFbsBitmap* aFold,CFbsBitmap* aSpread,CFbsBitmap* aShrink)
{
iFoldImage = aFold;
iSpread = aSpread;
iShrink = aShrink;
}
CNDTree::~CNDTree()
{
}
void CNDTree::SetNodeArray(RPointerArray<CTreeNode> aArray)
{
iNodeArray = aArray;
}
void CNDTree::Draw(const TRect& aRect) const
{
CWindowGc& gc = SystemGc();
gc.SetBrushStyle(CGraphicsContext::ESolidBrush);
gc.SetBrushColor(KRgbWhite);
gc.DrawRect(Rect());
for(int i=0;i<iNodeArray.Count();i++)
{
// if(iNodeArray[i]->GetKidCount() != 0)
// {
gc.DrawBitmap(TPoint(4,i*15+4),iSpread);
gc.DrawBitmap(TPoint(20,i*16+4),iFoldImage);
// gc.DrawText(iNodeArray[i]->GetContent(),TPoint(20,i*16+4));
// }
}
}
TKeyResponse CNDTree::OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType)
{
return EKeyWasConsumed;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -