| 75 | // CTerrainSoundDialog message handlers |
| 76 | |
| 77 | BOOL CTerrainSoundDialog::OnInitDialog() { |
| 78 | CDialog::OnInitDialog(); |
| 79 | |
| 80 | m_sound_combo.Init(Terrain_sound_bands[0].sound_index); |
| 81 | m_current = 0; |
| 82 | CopyToControls(); |
| 83 | UpdateDialog(); |
| 84 | |
| 85 | return TRUE; // return TRUE unless you set the focus to a control |
| 86 | // EXCEPTION: OCX Property Pages should return FALSE |
| 87 | } |
| 88 | |
| 89 | void CTerrainSoundDialog::EnableDisableAll(int flag) { |
| 90 | ((CButton *)GetDlgItem(IDC_TERRAIN_SOUND_LOW_ALT))->EnableWindow(flag); |