ATMO_BOOL CAtmoLiveSettings::ExecuteCommand(HWND hControl,int wmId, int wmEvent) { switch(wmId) { case IDOK: { CAtmoConfig *pAtmoConfig = this->m_pDynData->getAtmoConfig(); if(UpdateLiveViewValues(ATMO_FALSE) == ATMO_FALSE) return 0; EndDialog(this->m_hDialog, wmId); break; } case IDCANCEL: { // m_pBackupConfig --> wieder herstellen... CAtmoConfig *pAtmoConfig = this->m_pDynData->getAtmoConfig(); pAtmoConfig->Assign(this->m_pBackupConfig); EndDialog(this->m_hDialog, wmId); break; } case IDC_WIDESCREEN: { CAtmoConfig *pAtmoConfig = this->m_pDynData->getAtmoConfig(); if(Button_GetCheck(hControl) == BST_CHECKED) pAtmoConfig->setLiveView_WidescreenMode(1); else pAtmoConfig->setLiveView_WidescreenMode(0); break; } case IDC_FILTERMODE: { /// CBN_SELCHANGE if(wmEvent == CBN_SELCHANGE) { CAtmoConfig *pAtmoConfig = this->m_pDynData->getAtmoConfig(); int i = ComboBox_GetCurSel(hControl); pAtmoConfig->setLiveViewFilterMode((AtmoFilterMode)i); } break; } case IDC_DISPLAYS: { if(wmEvent == CBN_SELCHANGE) { CAtmoConfig *pAtmoConfig = this->m_pDynData->getAtmoConfig(); int i = ComboBox_GetCurSel(hControl); if(i != pAtmoConfig->getLiveView_DisplayNr()) { UpdateLiveViewValues( pAtmoConfig->getEffectMode() == emLivePicture ); } } break; } case IDC_GDI_CAPURE_RATE: { if(wmEvent == EN_CHANGE) { char buffer[20]; if(Edit_GetText(hControl,buffer,sizeof(buffer))>0) { int value = atoi(buffer); if((value>=1) && (value<=50)) { CAtmoConfig *pAtmoConfig = this->m_pDynData->getAtmoConfig(); pAtmoConfig->setLiveView_GDI_FrameRate(value); } else { MessageBeep(MB_ICONEXCLAMATION); } } } break; } default: return ATMO_FALSE; } return ATMO_TRUE; }