diff options
-rw-r--r-- | options.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/options.cpp b/options.cpp index 39639cb..f6c1d4b 100644 --- a/options.cpp +++ b/options.cpp @@ -234,8 +234,8 @@ static BOOL CALLBACK DlgProcWordEditDialog(HWND hwndDlg, UINT msg, WPARAM wParam { SetWindowText(hwndDlg, bTargetWord?_T("Edit target word or phrase"):_T("Edit source word or phrase")); TCHAR word[512]; - ListView_GetItemText(hwnd_list_p, item_num, 0, word, 16); - MessageBox(0, word, _T(""), MB_OK); + ListView_GetItemText(hwnd_list_p, item_num, 0, word, 511); + SetWindowText(GetDlgItem(hwndDlg, IDC_EDIT_WORD), word); } else SetWindowText(hwndDlg, bTargetWord?_T("Add target word or phrase"):_T("Add source word or phrase")); |