本文整理汇总了C++中CN3UIBase::SetParent方法的典型用法代码示例。如果您正苦于以下问题:C++ CN3UIBase::SetParent方法的具体用法?C++ CN3UIBase::SetParent怎么用?C++ CN3UIBase::SetParent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CN3UIBase
的用法示例。
在下文中一共展示了CN3UIBase::SetParent方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: static
//.........这里部分代码省略.........
break; // button
case UI_TYPE_STATIC:
{
CN3UIStatic* pUINew = new CN3UIStatic();
*pUINew = *((CN3UIStatic*)pOtherChild);
pChild = pUINew;
}
break; // static (배경그림과 글자가 나오는 클래스)
case UI_TYPE_PROGRESS:
{
CN3UIProgress* pUINew = new CN3UIProgress();
*pUINew = *((CN3UIProgress*)pOtherChild);
pChild = pUINew;
}
break; // progress
case UI_TYPE_IMAGE:
{
CN3UIImage* pUINew = new CN3UIImage();
*pUINew = *((CN3UIImage*)pOtherChild);
pChild = pUINew;
}
break; // image
case UI_TYPE_SCROLLBAR:
{
CN3UIScrollBar* pUINew = new CN3UIScrollBar();
*pUINew = *((CN3UIScrollBar*)pOtherChild);
pChild = pUINew;
}
break; // scroll bar
case UI_TYPE_STRING:
{
CN3UIString* pUINew = new CN3UIString();
*pUINew = *((CN3UIString*)pOtherChild);
pChild = pUINew;
}
break; // string
case UI_TYPE_TRACKBAR:
{
CN3UITrackBar* pUINew = new CN3UITrackBar();
*pUINew = *((CN3UITrackBar*)pOtherChild);
pChild = pUINew;
}
break; // track bar
case UI_TYPE_EDIT:
{
CN3UIEdit* pUINew = new CN3UIEdit();
*pUINew = *((CN3UIEdit*)pOtherChild);
pChild = pUINew;
}
break; // edit
case UI_TYPE_AREA:
{
CN3UIArea* pUINew = new CN3UIArea();
*pUINew = *((CN3UIArea*)pOtherChild);
pChild = pUINew;
}
break; // area
case UI_TYPE_TOOLTIP:
{
CN3UITooltip* pUINew = new CN3UITooltip();
*pUINew = *((CN3UITooltip*)pOtherChild);
pChild = pUINew;
}
break; // tooltip
case UI_TYPE_LIST:
{
CN3UIList* pUINew = new CN3UIList();
*pUINew = *((CN3UIList*)pOtherChild);
pChild = pUINew;
}
break; // tooltip
// case UI_TYPE_ICON: pUIDest = new CN3UIIcon(); *pUIDest = *((CN3UIBase*)pUISrc); break; // icon
// case UI_TYPE_ICON_MANAGER: pUIDest = new CN3UIIconManager(); *pUIDest = *((CN3UIBase*)pUISrc); break; // icon manager..
#ifdef _REPENT
case UI_TYPE_ICONSLOT:
{
CN3UIIconSlot* pUINew = new CN3UIIconSlot();
*pUINew = *((CN3UIIconSlot*)pOtherChild);
pChild = pUINew;
}
break; // icon slot
#endif
}
if(pChild) pChild->SetParent(this); // 부모 지정
}
m_bVisible = other.m_bVisible;
m_dwReserved = other.m_dwReserved;
m_dwStyle = other.m_dwStyle;
m_eState = other.m_eState;
m_eType = other.m_eType;
SetSndOpen(other.GetSndFName_OpenUI());
SetSndClose(other.GetSndFName_CloseUI());
m_rcMovable = other.m_rcMovable;
m_rcRegion = other.m_rcRegion;
m_szID = other.m_szID;
m_szToolTip = other.m_szToolTip;
}