Fix Encoding radio button issue in New Document

Sync UTF-8 checkbox with UTF-8 radio button

Closes #2377
pull/2511/head
Rajendra Singh 8 years ago committed by Don Ho
parent 752c1329e3
commit a4b03a1f57

@ -1243,6 +1243,8 @@ INT_PTR CALLBACK DefaultNewDocDlg::run_dlgProc(UINT message, WPARAM wParam, LPAR
case IDC_RADIO_OTHERCP : case IDC_RADIO_OTHERCP :
{ {
ndds._openAnsiAsUtf8 = false;
makeOpenAnsiAsUtf8(false);
::EnableWindow(::GetDlgItem(_hSelf, IDC_COMBO_OTHERCP), true); ::EnableWindow(::GetDlgItem(_hSelf, IDC_COMBO_OTHERCP), true);
auto index = ::SendDlgItemMessage(_hSelf, IDC_COMBO_OTHERCP, CB_GETCURSEL, 0, 0); auto index = ::SendDlgItemMessage(_hSelf, IDC_COMBO_OTHERCP, CB_GETCURSEL, 0, 0);
ndds._codepage = static_cast<int32_t>(::SendDlgItemMessage(_hSelf, IDC_COMBO_OTHERCP, CB_GETITEMDATA, index, 0)); ndds._codepage = static_cast<int32_t>(::SendDlgItemMessage(_hSelf, IDC_COMBO_OTHERCP, CB_GETITEMDATA, index, 0));

Loading…
Cancel
Save