当前位置: 首页>>代码示例>>C++>>正文


C++ CElement::IsKindOf方法代码示例

本文整理汇总了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;
//.........这里部分代码省略.........
开发者ID:eseawind,项目名称:CNCS_PMC-Conductor,代码行数:101,代码来源:Cell.cpp

示例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);
//.........这里部分代码省略.........
开发者ID:eseawind,项目名称:CNCS_PMC-Conductor,代码行数:101,代码来源:Cell.cpp


注:本文中的CElement::IsKindOf方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。