if control IAttributesPtr item AtrCreate if S_OK GetProperty control c

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
if ( control )
{
IAttributesPtr item = AtrCreate() ;
if ( S_OK == ::GetProperty( control, control::name, name ) && name.length() > 0 )
{
new_Item( pAtr, nItem, name );
nItem++;
}
else
{
ATLTRACE( _T("CControlGroup::Save : bad name for a control!\n") );
}
}
}