diff --git a/teraterm/teraterm/sendfiledlg.cpp b/teraterm/teraterm/sendfiledlg.cpp index d654efefc..a68a221ca 100644 --- a/teraterm/teraterm/sendfiledlg.cpp +++ b/teraterm/teraterm/sendfiledlg.cpp @@ -178,7 +178,7 @@ static INT_PTR CALLBACK SendFileDlgProc(HWND hDlgWnd, UINT msg, WPARAM wp, LPARA HWND hComboBox = GetDlgItem(hDlgWnd, IDC_SENDFILE_SEND_SIZE_DROPDOWN); GetComboBoxInfo(hComboBox, &cbi); HWND hEdit = cbi.hwndItem; - SetWindowLongW(hEdit, GWL_STYLE, ES_NUMBER | GetWindowLongW(hEdit, GWL_STYLE)); + SetWindowLongPtrW(hEdit, GWL_STYLE, GetWindowLongPtrW(hEdit, GWL_STYLE) | ES_NUMBER); } return TRUE; diff --git a/teraterm/teraterm/ttermpro.rc b/teraterm/teraterm/ttermpro.rc index 7db8a7d33..9fbd594cd 100644 --- a/teraterm/teraterm/ttermpro.rc +++ b/teraterm/teraterm/ttermpro.rc @@ -358,9 +358,9 @@ BEGIN COMBOBOX IDC_SENDFILE_SEND_SIZE_DROPDOWN,18,121,65,47,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP LTEXT "delay time(ms)",IDC_SENDFILE_DELAYTIME_LABEL,9,139,75,8 EDITTEXT IDC_SENDFILE_DELAYTIME_EDIT,18,154,40,14,ES_AUTOHSCROLL | ES_NUMBER - DEFPUSHBUTTON "OK",IDOK,104,179,50,14 + PUSHBUTTON "Help",IDHELP,104,179,50,14 PUSHBUTTON "Cancel",IDCANCEL,160,179,50,14 - PUSHBUTTON "Help",IDHELP,215,179,50,14 + DEFPUSHBUTTON "OK",IDOK,215,179,50,14 END IDD_TABSHEET_THEME DIALOGEX 0, 0, 307, 162