//----------------------------------------------------------------------------------------------- void CButtonsPanel::OnViewStartMap() { //если кнопку "выключили" то закрываем окно редактора if (m_view_start_map_btn.GetCheck()==BST_UNCHECKED) { ::SendMessage(m_start_map_wnd_handle,WM_CLOSE,0,0); return; } if ((!m_start_map_chart_state)&&(DLL::Chart2DCreate)) { m_start_map_chart_state = 1; m_start_map_wnd_handle = DLL::Chart2DCreate(GetStartMap(true),GetStartMap(false),-15.0,55.0,SECU3IO::start_map_rpm_slots,16, MLL::GetString(IDS_MAPS_RPM_UNIT).c_str(), MLL::GetString(IDS_MAPS_ADVANGLE_UNIT).c_str(), MLL::GetString(IDS_START_MAP).c_str()); DLL::Chart2DSetOnWndActivation(m_start_map_wnd_handle, OnWndActivationStartMap,this); DLL::Chart2DSetOnChange(m_start_map_wnd_handle,OnChangeStartMap,this); DLL::Chart2DSetOnClose(m_start_map_wnd_handle,OnCloseStartMap,this); DLL::Chart2DUpdate(m_start_map_wnd_handle, NULL, NULL); //<--actuate changes //let controller to know about opening of this window if (m_OnOpenMapWnd) m_OnOpenMapWnd(m_start_map_wnd_handle, TYPE_MAP_DA_START); DLL::Chart2DShow(m_start_map_wnd_handle, true); } else { ::SetFocus(m_start_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)); }