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; tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName); } lCount++; } //color pen d pDny=(CDny*)(&(pElement->m_DnyAttr.m_ColorPenD)); if(pDny->m_Used){ if(!bFake){ pTags=pFatherTags+lCount; tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName); } lCount++; } //color pen da pDny=(CDny*)(&(pElement->m_DnyAttr.m_ColorPenDA)); if(pDny->m_Used){ if(!bFake){ pTags=pFatherTags+lCount; tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName); } lCount++; } //color text a pDny=(CDny*)(&(pElement->m_DnyAttr.m_ColorTextA)); if(pDny->m_Used){ if(!bFake){ pTags=pFatherTags+lCount; tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName); } lCount++; } //color text aa pDny=(CDny*)(&(pElement->m_DnyAttr.m_ColorTextAA)); if(pDny->m_Used){ if(!bFake){ pTags=pFatherTags+lCount; tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName); } lCount++; } //color text d pDny=(CDny*)(&(pElement->m_DnyAttr.m_ColorTextD)); if(pDny->m_Used){ if(!bFake){ pTags=pFatherTags+lCount; tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName); } lCount++; } //color text da pDny=(CDny*)(&(pElement->m_DnyAttr.m_ColorTextDA)); if(pDny->m_Used){ if(!bFake){ pTags=pFatherTags+lCount; tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName); } lCount++; } //direction pDny=(CDny*)(&(pElement->m_DnyAttr.m_Direction)); if(pDny->m_Used){ if(!bFake){ pTags=pFatherTags+lCount; tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName); } lCount++; } //enable pDny=(CDny*)(&(pElement->m_DnyAttr.m_Enable)); if(pDny->m_Used){ if(!bFake){ pTags=pFatherTags+lCount; tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName); } lCount++; } //fill h pDny=(CDny*)(&(pElement->m_DnyAttr.m_FillH)); if(pDny->m_Used){ if(!bFake){ pTags=pFatherTags+lCount; tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName); } lCount++; } //fill v pDny=(CDny*)(&(pElement->m_DnyAttr.m_FillV)); if(pDny->m_Used){ if(!bFake){ pTags=pFatherTags+lCount; tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName); } lCount++; } //input a pDny=(CDny*)(&(pElement->m_DnyAttr.m_InputA)); if(pDny->m_Used){ if(!bFake){ pTags=pFatherTags+lCount; tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName); } lCount++; } //input d pDny=(CDny*)(&(pElement->m_DnyAttr.m_InputD)); if(pDny->m_Used){ if(!bFake){ pTags=pFatherTags+lCount; tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName); } lCount++; } //pos h pDny=(CDny*)(&(pElement->m_DnyAttr.m_PosH)); if(pDny->m_Used){ if(!bFake){ pTags=pFatherTags+lCount; tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName); } lCount++; } //pos v pDny=(CDny*)(&(pElement->m_DnyAttr.m_PosV)); if(pDny->m_Used){ if(!bFake){ pTags=pFatherTags+lCount; tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName); } lCount++; } //size h pDny=(CDny*)(&(pElement->m_DnyAttr.m_SizeH)); if(pDny->m_Used){ if(!bFake){ pTags=pFatherTags+lCount; tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName); } lCount++; } //size v pDny=(CDny*)(&(pElement->m_DnyAttr.m_SizeV)); if(pDny->m_Used){ if(!bFake){ pTags=pFatherTags+lCount; tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName); } lCount++; } //slide h pDny=(CDny*)(&(pElement->m_DnyAttr.m_SlideH)); if(pDny->m_Used){ if(!bFake){ pTags=pFatherTags+lCount; tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName); } lCount++; } //slide v pDny=(CDny*)(&(pElement->m_DnyAttr.m_SlideV)); if(pDny->m_Used){ if(!bFake){ pTags=pFatherTags+lCount; tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName); } lCount++; } //value a pDny=(CDny*)(&(pElement->m_DnyAttr.m_ValueA)); if(pDny->m_Used){ if(!bFake){ pTags=pFatherTags+lCount; tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName); } lCount++; } //value d pDny=(CDny*)(&(pElement->m_DnyAttr.m_ValueD)); if(pDny->m_Used){ if(!bFake){ pTags=pFatherTags+lCount; tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName); } lCount++; } //visible pDny=(CDny*)(&(pElement->m_DnyAttr.m_Visible)); if(pDny->m_Used){ if(!bFake){ pTags=pFatherTags+lCount; tagname_by_text(pTags,(LPCTSTR)pDny->m_TagName); } lCount++; } } } return lCount; }
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); lCount++; } //color text da pDny=(CDny*)(&(pElement->m_DnyAttr.m_ColorTextDA)); if(pDny->m_Used){ pTagList->GetText(lCount,pDny->m_TagName); lCount++; } //direction pDny=(CDny*)(&(pElement->m_DnyAttr.m_Direction)); if(pDny->m_Used){ pTagList->GetText(lCount,pDny->m_TagName); lCount++; } //enable pDny=(CDny*)(&(pElement->m_DnyAttr.m_Enable)); if(pDny->m_Used){ pTagList->GetText(lCount,pDny->m_TagName); lCount++; } //fill h pDny=(CDny*)(&(pElement->m_DnyAttr.m_FillH)); if(pDny->m_Used){ pTagList->GetText(lCount,pDny->m_TagName); lCount++; } //fill v pDny=(CDny*)(&(pElement->m_DnyAttr.m_FillV)); if(pDny->m_Used){ pTagList->GetText(lCount,pDny->m_TagName); lCount++; } //input a pDny=(CDny*)(&(pElement->m_DnyAttr.m_InputA)); if(pDny->m_Used){ pTagList->GetText(lCount,pDny->m_TagName); lCount++; } //input d pDny=(CDny*)(&(pElement->m_DnyAttr.m_InputD)); if(pDny->m_Used){ pTagList->GetText(lCount,pDny->m_TagName); lCount++; } //pos h pDny=(CDny*)(&(pElement->m_DnyAttr.m_PosH)); if(pDny->m_Used){ pTagList->GetText(lCount,pDny->m_TagName); lCount++; } //pos v pDny=(CDny*)(&(pElement->m_DnyAttr.m_PosV)); if(pDny->m_Used){ pTagList->GetText(lCount,pDny->m_TagName); lCount++; } //size h pDny=(CDny*)(&(pElement->m_DnyAttr.m_SizeH)); if(pDny->m_Used){ pTagList->GetText(lCount,pDny->m_TagName); lCount++; } //size v pDny=(CDny*)(&(pElement->m_DnyAttr.m_SizeV)); if(pDny->m_Used){ pTagList->GetText(lCount,pDny->m_TagName); lCount++; } //slide h pDny=(CDny*)(&(pElement->m_DnyAttr.m_SlideH)); if(pDny->m_Used){ pTagList->GetText(lCount,pDny->m_TagName); lCount++; } //slide v pDny=(CDny*)(&(pElement->m_DnyAttr.m_SlideV)); if(pDny->m_Used){ pTagList->GetText(lCount,pDny->m_TagName); lCount++; } //value a pDny=(CDny*)(&(pElement->m_DnyAttr.m_ValueA)); if(pDny->m_Used){ pTagList->GetText(lCount,pDny->m_TagName); lCount++; } //value d pDny=(CDny*)(&(pElement->m_DnyAttr.m_ValueD)); if(pDny->m_Used){ pTagList->GetText(lCount,pDny->m_TagName); lCount++; } //visible pDny=(CDny*)(&(pElement->m_DnyAttr.m_Visible)); if(pDny->m_Used){ pTagList->GetText(lCount,pDny->m_TagName); lCount++; } } } return lCount; }