MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / OnCbnSelchangeLanguage

Method OnCbnSelchangeLanguage

cppcryptfs/ui/MoreSettingsPropertyPage.cpp:186–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186void 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
200void CMoreSettingsPropertyPage::OnBnClickedApply()
201{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected