ATMO_BOOL CAtmoLiveSettings::UpdateLiveViewValues(ATMO_BOOL showPreview) { HWND hwndCtrl; CAtmoDisplays *pAtmoDisplays = this->m_pDynData->getAtmoDisplays(); CAtmoConfig *pAtmoConfig = this->m_pDynData->getAtmoConfig(); pAtmoDisplays->ReloadList(); // auf nummer sicher! hwndCtrl = getDlgItem(IDC_DISPLAYS); int i = ComboBox_GetCurSel(hwndCtrl); if(i>=pAtmoDisplays->getCount()) { pAtmoConfig->setLiveView_DisplayNr(0); LoadDisplayList(); MessageBox(this->m_hDialog,"Ausgewähltes Display nicht mehr in der Liste ;-)","Fehler",MB_ICONERROR | MB_OK); return ATMO_FALSE; } pAtmoConfig->setLiveView_DisplayNr(i); if(showPreview == ATMO_TRUE) { CAtmoConnection *pAtmoConnection = m_pDynData->getAtmoConnection(); if((pAtmoConnection!=NULL) && pAtmoConnection->isOpen()) { CAtmoTools::SwitchEffect(m_pDynData, emLivePicture); } } return ATMO_TRUE; }