本文整理汇总了C++中ContactList::getMatchField方法的典型用法代码示例。如果您正苦于以下问题:C++ ContactList::getMatchField方法的具体用法?C++ ContactList::getMatchField怎么用?C++ ContactList::getMatchField使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ContactList
的用法示例。
在下文中一共展示了ContactList::getMatchField方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ArchiveMatchTreeGetText
//---------------------------------------------------------------------------
void __fastcall TSingleLogFrame::ArchiveMatchTreeGetText(
TBaseVirtualTree *Sender, PVirtualNode Node, TColumnIndex Column,
TVSTTextType /*TextType*/, WideString &CellText )
{
CellText = "";
MatchNodeListData * pc = ( MatchNodeListData * ) Sender->GetNodeData( Node );
ContactList *clp = pc->matchedList;
if ( pc && ( clp || pc->matchedContact ) && Column >= 0 )
{
if ( pc->top )
{
if ( Column == 0 )
CellText = ( clp->name ).c_str();
}
else
{
std::string cell;
BaseContestLog * ct = TContestApp::getContestApp() ->getCurrentContest();
if ( ArchiveMatchTreeColumns[ Column ].fieldId == egComments )
{
std::string exch;
clp->getMatchField( pc->matchedContact, egExchange, exch, ct );
std::string cmnt;
clp->getMatchField( pc->matchedContact, egComments, cmnt, ct );
if ( exch.size() )
{
cell = exch + "(" + cmnt + ")";
}
else
{
cell = cmnt;
}
}
else
{
clp->getMatchField( pc->matchedContact, ArchiveMatchTreeColumns[ Column ].fieldId, cell, ct ); // col 0 is the tree lines
}
CellText = cell.c_str();
}
}
else
{
if ( Column == 0 )
CellText = "No archive matches";
}
}