//----------------------------------------------------------------------------------------------- void CButtonsPanel::OnViewIdleMap() { //если кнопку "выключили" то закрываем окно редактора if (m_view_idle_map_btn.GetCheck()==BST_UNCHECKED) { ::SendMessage(m_idle_map_wnd_handle,WM_CLOSE,0,0); return; } if ((!m_idle_map_chart_state)&&(DLL::Chart2DCreate)) { m_idle_map_chart_state = 1; m_idle_map_wnd_handle = DLL::Chart2DCreate(GetIdleMap(true),GetIdleMap(false),-15.0,55.0,SECU3IO::idle_map_rpm_slots,16, MLL::GetString(IDS_MAPS_RPM_UNIT).c_str(), MLL::GetString(IDS_MAPS_ADVANGLE_UNIT).c_str(), MLL::GetString(IDS_IDLE_MAP).c_str()); DLL::Chart2DSetOnWndActivation(m_idle_map_wnd_handle,OnWndActivationIdleMap,this); DLL::Chart2DSetOnChange(m_idle_map_wnd_handle,OnChangeIdleMap,this); DLL::Chart2DSetOnClose(m_idle_map_wnd_handle,OnCloseIdleMap,this); DLL::Chart2DUpdate(m_idle_map_wnd_handle, NULL, NULL); //<--actuate changes //let controller to know about opening of this window if (m_OnOpenMapWnd) m_OnOpenMapWnd(m_idle_map_wnd_handle, TYPE_MAP_DA_IDLE); DLL::Chart2DShow(m_idle_map_wnd_handle, true); } else { ::SetFocus(m_idle_map_wnd_handle); } }
void CButtonsPanel::UpdateOpenedCharts(void) { if (m_start_map_chart_state) DLL::Chart2DUpdate(m_start_map_wnd_handle, GetStartMap(true), GetStartMap(false)); if (m_idle_map_chart_state) DLL::Chart2DUpdate(m_idle_map_wnd_handle, GetIdleMap(true), GetIdleMap(false)); if (m_work_map_chart_state) DLL::Chart3DUpdate(m_work_map_wnd_handle, GetWorkMap(true), GetWorkMap(false)); if (m_temp_map_chart_state) DLL::Chart2DUpdate(m_temp_map_wnd_handle, GetTempMap(true), GetTempMap(false)); }
void CFirmwareTabDlg::UpdateOpenedCharts(void) { if (m_start_map_chart_state) DLL::UOZ1_Chart2DUpdate(m_start_map_wnd_handle,GetStartMap(true),GetStartMap(false)); if (m_idle_map_chart_state) DLL::UOZ1_Chart2DUpdate(m_idle_map_wnd_handle,GetIdleMap(true),GetIdleMap(false)); if (m_work_map_chart_state) DLL::UOZ2_Chart3DUpdate(m_work_map_wnd_handle,GetWorkMap(true),GetWorkMap(false)); if (m_temp_map_chart_state) DLL::UOZ1_Chart2DUpdate(m_temp_map_wnd_handle,GetTempMap(true),GetTempMap(false)); if (m_attenuator_map_chart_state) DLL::UOZ1_Chart2DUpdate(m_attenuator_map_wnd_handle,GetAttenuatorMap(true),GetAttenuatorMap(false)); if (m_coilregul_map_chart_state) DLL::UOZ1_Chart2DUpdate(m_coilregul_map_wnd_handle,GetCoilRegulMap(true), GetCoilRegulMap(false)); }