TestEgr :

- piccoli miglioramenti.
This commit is contained in:
Dario Sassi
2014-09-20 22:09:33 +00:00
parent bd41a4e01d
commit 61dea6c98e
2 changed files with 19 additions and 11 deletions
+8 -1
View File
@@ -75,11 +75,18 @@ CTestEGrDlg::ClearTree( void)
// ripristino stato eventuale ultimo oggetto selezionato
RevertOldIdInTree() ;
// disabilito aggiornamento
m_Tree.SetRedraw( FALSE) ;
// svuoto l'albero
m_Tree.SelectItem( NULL) ;
m_Tree.DeleteAllItems() ;
OutData( "") ;
// riabilito aggiornamento
m_Tree.SetRedraw( TRUE) ;
m_Tree.Invalidate() ;
return true ;
}
@@ -154,7 +161,7 @@ CTestEGrDlg::InsertGroupInTree( int nId, HTREEITEM hParent)
// Se troppi figli, non li visualizzo
int nObjs = m_pGeomDB->GetGroupObjs( nId) ;
if ( nObjs > 16000) {
if ( nObjs > 20000) {
string sInfo = sGroup + " Too many objects ..." ;
m_Tree.SetItemText( hGroup, stringtoW( sInfo)) ;
return true ;