TestEgr 1.5c2 :

- visualizzazione nome e info negli alberi degli oggetti
- gestione apertura file all'inizio conseguente a doppio click in shell.
This commit is contained in:
Dario Sassi
2014-03-10 11:39:52 +00:00
parent f435c1148d
commit 79713e1a73
5 changed files with 46 additions and 6 deletions
+6 -1
View File
@@ -90,7 +90,12 @@ CTestEGrDlg::InsertGroupOnTree( int nId, HTREEITEM hParent)
if ( nId == GDB_ID_ROOT)
hGroup = hParent ;
else {
string sGroup = "Group " + ToString( nId) ;
string sGroup ;
string sName ;
if ( m_pGeomDB->GetName( nId, sName))
sGroup += sName + " (Group " + ToString( nId) +")" ;
else
sGroup = "Group " + ToString( nId) ;
hGroup = m_Tree.InsertItem( stringtoW( sGroup), ICO_GROUP, ICO_GROUP, hParent) ;
if ( hGroup == nullptr || m_Tree.SetItemData( hGroup, nId) == 0)
return false ;