| 94 | } |
| 95 | |
| 96 | void CTerrainSoundDialog::UpdateDialog() { |
| 97 | // Enabled/disable edit boxes |
| 98 | EnableDisableAll(m_bands[m_current].sound_index != -1); |
| 99 | |
| 100 | // Show which band |
| 101 | PrintToDlgItem(this, IDC_TERRAIN_SOUND_BAND_TEXT, "Band %d:", m_current); |
| 102 | |
| 103 | // Enable/disable next & prev |
| 104 | ((CButton *)GetDlgItem(IDC_TERRAIN_SOUND_NEXT))->EnableWindow(m_current < NUM_TERRAIN_SOUND_BANDS - 1); |
| 105 | ((CButton *)GetDlgItem(IDC_TERRAIN_SOUND_PREV))->EnableWindow(m_current > 0); |
| 106 | } |
| 107 | |
| 108 | void CTerrainSoundDialog::CopyToControls() { |
| 109 | m_low_alt = m_bands[m_current].low_alt; |
nothing calls this directly
no test coverage detected