| 184 | } |
| 185 | |
| 186 | void CMoreSettingsPropertyPage::OnCbnSelchangeLanguage() |
| 187 | { |
| 188 | int nIdx = m_ctrlComboBox.GetCurSel(); |
| 189 | if (nIdx != CB_ERR) |
| 190 | { |
| 191 | WORD selectedLangID = (WORD)m_ctrlComboBox.GetItemData(nIdx); |
| 192 | WORD lastSavedID = theApp.LoadLanguageFromRegistry(); |
| 193 | if (lastSavedID == 0) lastSavedID = (WORD)GetThreadUILanguage(); |
| 194 | |
| 195 | // The button is activated only if the selection in the list is different from that in the registry. |
| 196 | GetDlgItem(IDC_APPLY)->EnableWindow(selectedLangID != lastSavedID); |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | void CMoreSettingsPropertyPage::OnBnClickedApply() |
| 201 | { |
nothing calls this directly
no test coverage detected