@@ -1117,6 +1117,7 @@ void CButtonsPanel::OnViewCrnkMap()
1117
1117
MLL::GetString (IDS_MAPS_TEMPERATURE_UNIT).c_str (),
1118
1118
MLL::GetString (IDS_MAPS_INJPW_UNIT).c_str (),
1119
1119
MLL::GetString (IDS_CRNK_MAP).c_str (), false );
1120
+ DLL::Chart2DSetOnWndActivation (m_crnk_map_wnd_handle,OnWndActivationCrnkMap,this );
1120
1121
DLL::Chart2DSetAxisValuesFormat (m_crnk_map_wnd_handle, 1 , _T (" %.01f" ));
1121
1122
DLL::Chart2DSetOnChange (m_crnk_map_wnd_handle, OnChangeCrnkMap, this );
1122
1123
DLL::Chart2DSetOnClose (m_crnk_map_wnd_handle, OnCloseCrnkMap, this );
@@ -1186,6 +1187,7 @@ void CButtonsPanel::OnViewDeadMap()
1186
1187
MLL::GetString (IDS_DEAD_MAP).c_str (), false );
1187
1188
DLL::Chart2DSetPtValuesFormat (m_dead_map_wnd_handle, _T (" #0.00" ));
1188
1189
DLL::Chart2DSetPtMovingStep (m_dead_map_wnd_handle, 0 .1f );
1190
+ DLL::Chart2DSetOnWndActivation (m_dead_map_wnd_handle,OnWndActivationDeadMap,this );
1189
1191
DLL::Chart2DSetAxisValuesFormat (m_dead_map_wnd_handle, 1 , _T (" %.01f" ));
1190
1192
DLL::Chart2DSetOnChange (m_dead_map_wnd_handle, OnChangeDeadMap, this );
1191
1193
DLL::Chart2DSetOnClose (m_dead_map_wnd_handle, OnCloseDeadMap, this );
@@ -1454,7 +1456,6 @@ void CButtonsPanel::OnUpdateViewAFRMap(CCmdUI* pCmdUI)
1454
1456
pCmdUI->SetCheck ( (m_afr_map_chart_state) ? TRUE : FALSE );
1455
1457
}
1456
1458
1457
-
1458
1459
void CButtonsPanel::OnUpdateViewCrnkMap (CCmdUI* pCmdUI)
1459
1460
{
1460
1461
bool allowed = IsAllowed ();
@@ -1770,7 +1771,7 @@ HWND CButtonsPanel::GetMapWindow(int wndType)
1770
1771
void CButtonsPanel::_EnableCharts (bool enable)
1771
1772
{
1772
1773
if (m_charts_enabled != (int )enable)
1773
- {
1774
+ {// ignition
1774
1775
if (m_start_map_chart_state && ::IsWindow (m_start_map_wnd_handle))
1775
1776
DLL::Chart2DEnable (m_start_map_wnd_handle, enable && IsAllowed ());
1776
1777
if (m_idle_map_chart_state && ::IsWindow (m_idle_map_wnd_handle))
@@ -1779,27 +1780,27 @@ void CButtonsPanel::_EnableCharts(bool enable)
1779
1780
DLL::Chart3DEnable (m_work_map_wnd_handle, enable && IsAllowed ());
1780
1781
if (m_temp_map_chart_state && ::IsWindow (m_temp_map_wnd_handle))
1781
1782
DLL::Chart2DEnable (m_temp_map_wnd_handle, enable && IsAllowed ());
1782
-
1783
+ // fuel injection
1783
1784
if (m_ve_map_chart_state && ::IsWindow (m_ve_map_wnd_handle))
1784
1785
DLL::Chart3DEnable (m_ve_map_wnd_handle, enable && IsAllowed ());
1785
1786
if (m_afr_map_chart_state && ::IsWindow (m_afr_map_wnd_handle))
1786
1787
DLL::Chart3DEnable (m_afr_map_wnd_handle, enable && IsAllowed ());
1787
1788
if (m_crnk_map_chart_state && ::IsWindow (m_crnk_map_wnd_handle))
1788
- DLL::Chart3DEnable (m_crnk_map_wnd_handle, enable && IsAllowed ());
1789
+ DLL::Chart2DEnable (m_crnk_map_wnd_handle, enable && IsAllowed ());
1789
1790
if (m_wrmp_map_chart_state && ::IsWindow (m_wrmp_map_wnd_handle))
1790
- DLL::Chart3DEnable (m_wrmp_map_wnd_handle, enable && IsAllowed ());
1791
+ DLL::Chart2DEnable (m_wrmp_map_wnd_handle, enable && IsAllowed ());
1791
1792
if (m_dead_map_chart_state && ::IsWindow (m_dead_map_wnd_handle))
1792
- DLL::Chart3DEnable (m_dead_map_wnd_handle, enable && IsAllowed ());
1793
+ DLL::Chart2DEnable (m_dead_map_wnd_handle, enable && IsAllowed ());
1793
1794
if (m_idlr_map_chart_state && ::IsWindow (m_idlr_map_wnd_handle))
1794
- DLL::Chart3DEnable (m_idlr_map_wnd_handle, enable && IsAllowed ());
1795
+ DLL::Chart2DEnable (m_idlr_map_wnd_handle, enable && IsAllowed ());
1795
1796
if (m_idlc_map_chart_state && ::IsWindow (m_idlc_map_wnd_handle))
1796
- DLL::Chart3DEnable (m_idlc_map_wnd_handle, enable && IsAllowed ());
1797
+ DLL::Chart2DEnable (m_idlc_map_wnd_handle, enable && IsAllowed ());
1797
1798
if (m_aetps_map_chart_state && ::IsWindow (m_aetps_map_wnd_handle))
1798
- DLL::Chart3DEnable (m_aetps_map_wnd_handle, enable && IsAllowed ());
1799
+ DLL::Chart2DEnable (m_aetps_map_wnd_handle, enable && IsAllowed ());
1799
1800
if (m_aerpm_map_chart_state && ::IsWindow (m_aerpm_map_wnd_handle))
1800
- DLL::Chart3DEnable (m_aerpm_map_wnd_handle, enable && IsAllowed ());
1801
+ DLL::Chart2DEnable (m_aerpm_map_wnd_handle, enable && IsAllowed ());
1801
1802
if (m_aftstr_map_chart_state && ::IsWindow (m_aftstr_map_wnd_handle))
1802
- DLL::Chart3DEnable (m_aftstr_map_wnd_handle, enable && IsAllowed ());
1803
+ DLL::Chart2DEnable (m_aftstr_map_wnd_handle, enable && IsAllowed ());
1803
1804
1804
1805
if (mp_gridModeEditorDlg.get () && m_grid_map_state && ::IsWindow (mp_gridModeEditorDlg->m_hWnd ))
1805
1806
mp_gridModeEditorDlg->UpdateDialogControls (mp_gridModeEditorDlg.get (), TRUE );
0 commit comments