本文整理汇总了C++中CElement::IsKindOf方法的典型用法代码示例。如果您正苦于以下问题:C++ CElement::IsKindOf方法的具体用法?C++ CElement::IsKindOf怎么用?C++ CElement::IsKindOf使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CElement
的用法示例。
在下文中一共展示了CElement::IsKindOf方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetDynTags
long CCell::GetDynTags(TAG_NAME *pFatherTags, bool bFake,long lFatherCount)
{
TAG_NAME *pTags;
long lCount=lFatherCount;
CDny * pDny;
POSITION pos;
CElement *pElement;
for(pos=m_Elements.GetHeadPosition();pos!=NULL;){
pElement=((CElement*)(m_Elements.GetNext(pos)));
if(pElement->IsKindOf(RUNTIME_CLASS(CCell))){
lCount=((CCell*)pElement)->GetDynTags(pFatherTags,bFake,lCount);
}else{
//blink
pDny=(CDny*)(&(pElement->m_DnyAttr.m_Blink));
if(pDny->m_Used){
if(!bFake){
pTags=pFatherTags+lCount;
tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName);
}
lCount++;
}
//button a
pDny=(CDny*)(&(pElement->m_DnyAttr.m_ButtonA));
if(pDny->m_Used){
if(!bFake){
pTags=pFatherTags+lCount;
tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName);
}
lCount++;
}
//button d
pDny=(CDny*)(&(pElement->m_DnyAttr.m_ButtonD));
if(pDny->m_Used){
if(!bFake){
pTags=pFatherTags+lCount;
tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName);
}
lCount++;
}
//button wnd
//pDny=(CDny*)(&(pElement->m_DnyAttr.m_ButtonWnd));
//if(pDny->m_Used){
// if(!bFake){
// tagname_by_text(pTags,pDny->m_TagName.GetBuffer(TAGNAME_TEXT_LENGTH));
// pDny->m_TagName.ReleaseBuffer();
// pTags++;
// }
// lCount++;
//}
//color brush a
pDny=(CDny*)(&(pElement->m_DnyAttr.m_ColorBrushA));
if(pDny->m_Used){
if(!bFake){
pTags=pFatherTags+lCount;
tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName);
}
lCount++;
}
//color brush aa
pDny=(CDny*)(&(pElement->m_DnyAttr.m_ColorBrushAA));
if(pDny->m_Used){
if(!bFake){
pTags=pFatherTags+lCount;
tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName);
}
lCount++;
}
//color brush d
pDny=(CDny*)(&(pElement->m_DnyAttr.m_ColorBrushD));
if(pDny->m_Used){
if(!bFake){
pTags=pFatherTags+lCount;
tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName);
}
lCount++;
}
//color brush da
pDny=(CDny*)(&(pElement->m_DnyAttr.m_ColorBrushDA));
if(pDny->m_Used){
if(!bFake){
pTags=pFatherTags+lCount;
tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName);
}
lCount++;
}
//color pen a
pDny=(CDny*)(&(pElement->m_DnyAttr.m_ColorPenA));
if(pDny->m_Used){
if(!bFake){
pTags=pFatherTags+lCount;
tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName);
}
lCount++;
}
//color pen aa
pDny=(CDny*)(&(pElement->m_DnyAttr.m_ColorPenAA));
if(pDny->m_Used){
if(!bFake){
pTags=pFatherTags+lCount;
//.........这里部分代码省略.........
示例2: SetTag
long CCell::SetTag(CListBox *pTagList)
{
long lCount=0;
CDny * pDny;
POSITION pos;
CElement *pElement;
for(pos=m_Elements.GetHeadPosition();pos!=NULL;){
pElement=((CElement*)(m_Elements.GetNext(pos)));
if(pElement->IsKindOf(RUNTIME_CLASS(CCell))){
lCount+=((CCell*)pElement)->SetTag(pTagList);
}else{
//blink
pDny=(CDny*)(&(pElement->m_DnyAttr.m_Blink));
if(pDny->m_Used){
pTagList->GetText(lCount,pDny->m_TagName);
lCount++;
}
//button a
pDny=(CDny*)(&(pElement->m_DnyAttr.m_ButtonA));
if(pDny->m_Used){
pTagList->GetText(lCount,pDny->m_TagName);
lCount++;
}
//button d
pDny=(CDny*)(&(pElement->m_DnyAttr.m_ButtonD));
if(pDny->m_Used){
pTagList->GetText(lCount,pDny->m_TagName);
lCount++;
}
//button wnd
pDny=(CDny*)(&(pElement->m_DnyAttr.m_ButtonWnd));
if(pDny->m_Used){
pTagList->GetText(lCount,pDny->m_TagName);
lCount++;
}
//color brush a
pDny=(CDny*)(&(pElement->m_DnyAttr.m_ColorBrushA));
if(pDny->m_Used){
pTagList->GetText(lCount,pDny->m_TagName);
lCount++;
}
//color brush aa
pDny=(CDny*)(&(pElement->m_DnyAttr.m_ColorBrushAA));
if(pDny->m_Used){
pTagList->GetText(lCount,pDny->m_TagName);
lCount++;
}
//color brush d
pDny=(CDny*)(&(pElement->m_DnyAttr.m_ColorBrushD));
if(pDny->m_Used){
pTagList->GetText(lCount,pDny->m_TagName);
lCount++;
}
//color brush da
pDny=(CDny*)(&(pElement->m_DnyAttr.m_ColorBrushDA));
if(pDny->m_Used){
pTagList->GetText(lCount,pDny->m_TagName);
lCount++;
}
//color pen a
pDny=(CDny*)(&(pElement->m_DnyAttr.m_ColorPenA));
if(pDny->m_Used){
pTagList->GetText(lCount,pDny->m_TagName);
lCount++;
}
//color pen aa
pDny=(CDny*)(&(pElement->m_DnyAttr.m_ColorPenAA));
if(pDny->m_Used){
pTagList->GetText(lCount,pDny->m_TagName);
lCount++;
}
//color pen d
pDny=(CDny*)(&(pElement->m_DnyAttr.m_ColorPenD));
if(pDny->m_Used){
pTagList->GetText(lCount,pDny->m_TagName);
lCount++;
}
//color pen da
pDny=(CDny*)(&(pElement->m_DnyAttr.m_ColorPenDA));
if(pDny->m_Used){
pTagList->GetText(lCount,pDny->m_TagName);
lCount++;
}
//color text a
pDny=(CDny*)(&(pElement->m_DnyAttr.m_ColorTextA));
if(pDny->m_Used){
pTagList->GetText(lCount,pDny->m_TagName);
lCount++;
}
//color text aa
pDny=(CDny*)(&(pElement->m_DnyAttr.m_ColorTextAA));
if(pDny->m_Used){
pTagList->GetText(lCount,pDny->m_TagName);
lCount++;
}
//color text d
pDny=(CDny*)(&(pElement->m_DnyAttr.m_ColorTextD));
if(pDny->m_Used){
pTagList->GetText(lCount,pDny->m_TagName);
//.........这里部分代码省略.........