diff --git a/TestEGrDlg.cpp b/TestEGrDlg.cpp index 750dbb1..3e5acad 100644 --- a/TestEGrDlg.cpp +++ b/TestEGrDlg.cpp @@ -388,6 +388,9 @@ CTestEGrDlg::OnFileOpen( void) // inserisco il nome del file nel titolo della finestra SetWindowText( stringtoW( ( sFileName + " - EgalTech TestEGr"))) ; + // emetto info + string sInfo = "Open File = " + sFilePath ; + LOG_INFO( m_pLogger, sInfo.c_str()) // pulizia e reinizializzazione del DB geometrico m_pGeomDB->Clear() ; @@ -400,7 +403,15 @@ CTestEGrDlg::OnFileOpen( void) m_View.Zoom( IDC_ZOOM_ALL) ; Counter.Stop() ; string sOut = "First ZoomAll time = " + ToString( Counter.GetTime(), 2) + " ms" ; + // eseguo ridisegno + Counter.Start() ; + m_View.Redraw() ; + Counter.Stop() ; + sOut += " Redraw time = " + ToString( Counter.GetTime(), 2) + " ms" ; + // emetto info GetDlgItem( IDC_INFO)->SetWindowText( stringtoW( sOut)) ; + LOG_INFO( m_pLogger, sOut.c_str()) + } //---------------------------------------------------------------------------- diff --git a/TestEGrView.h b/TestEGrView.h index 60574c6..6420f61 100644 --- a/TestEGrView.h +++ b/TestEGrView.h @@ -20,6 +20,7 @@ class TestEgrView : public CWnd IGeomDB* pGeomDB, ILogger* pLogger) ; void Destroy( void) ; bool Reshape( int nX, int nY, int nW, int nH) ; + void Redraw( void) ; void Zoom( UINT nID) ; void View( UINT nID) ; diff --git a/TestEgrView.cpp b/TestEgrView.cpp index dda6af4..f4fc116 100644 --- a/TestEgrView.cpp +++ b/TestEgrView.cpp @@ -139,6 +139,13 @@ TestEgrView::OnPaint( void) ValidateRgn( NULL) ; } +//---------------------------------------------------------------------------- +void +TestEgrView::Redraw( void) +{ + RedrawWindow() ; +} + //---------------------------------------------------------------------------- void TestEgrView::Zoom( UINT nID)