version 1.1, 2000/11/22 06:20:13 |
version 1.6, 2015/08/20 17:47:53 |
|
|
|
|
#include "stdafx.h" |
#include "stdafx.h" |
#include "ox_plot.h" |
#include "ox_plot.h" |
|
|
#include "MainFrm.h" |
#include "MainFrm.h" |
|
|
extern "C" { |
extern "C" { |
#include "ca.h" |
#include "if_canvas.h" |
#include "ifplot.h" |
|
} |
} |
|
|
|
|
#ifdef _DEBUG |
#ifdef _DEBUG |
#define new DEBUG_NEW |
#define new DEBUG_NEW |
#undef THIS_FILE |
#undef THIS_FILE |
Line 161 void CMainFrame::OnUpdateProgress(CCmdUI *pCmdUI) |
|
Line 160 void CMainFrame::OnUpdateProgress(CCmdUI *pCmdUI) |
|
|
|
if ( !m_wndView.can ) |
if ( !m_wndView.can ) |
return; |
return; |
switch ( mode = m_wndView.can->mode ) { |
|
case MODE_IFPLOT: case MODE_CONPLOT: |
if ( canvas_is_ifplot(m_wndView.can) ) { |
pCmdUI->Enable(); |
pCmdUI->Enable(); |
strProgress.Format("%s%d%%",m_wndView.can->prefix,m_wndView.can->percentage); |
strProgress.Format("%s%d%%",canvas_prefix(m_wndView.can),canvas_percentage(m_wndView.can)); |
pCmdUI->SetText(strProgress); |
pCmdUI->SetText(strProgress); |
break; |
|
default: |
|
break; |
|
} |
} |
} |
} |
|
|