TestEgr :
- piccoli miglioramenti.
This commit is contained in:
+8
-1
@@ -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 ;
|
||||
|
||||
Reference in New Issue
Block a user