From 0e8ffa6f388f28411decbcc6fe6c834029830714 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sun, 22 Feb 2015 10:08:45 +0000 Subject: Tox: cosmetics git-svn-id: http://svn.miranda-ng.org/main/trunk@12240 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_options.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'protocols/Tox/src/tox_options.cpp') diff --git a/protocols/Tox/src/tox_options.cpp b/protocols/Tox/src/tox_options.cpp index 2b1e0abeed..10662f0134 100644 --- a/protocols/Tox/src/tox_options.cpp +++ b/protocols/Tox/src/tox_options.cpp @@ -238,6 +238,11 @@ INT_PTR CALLBACK EditNodeDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l itemInfo = (ItemInfo*)lParam; SetWindowLongPtr(hwndDlg, GWLP_USERDATA, lParam); + SendDlgItemMessage(hwndDlg, IDC_IPV4, EM_SETLIMITTEXT, 15, 0); + SendDlgItemMessage(hwndDlg, IDC_IPV6, EM_SETLIMITTEXT, 39, 0); + SendDlgItemMessage(hwndDlg, IDC_PORT, EM_SETLIMITTEXT, 5, 0); + SendDlgItemMessage(hwndDlg, IDC_PKEY, EM_SETLIMITTEXT, TOX_PUBLIC_KEY_SIZE * 2, 0); + if (itemInfo->iItem == -1) { SetWindowText(hwndDlg, TranslateT("Add node")); @@ -258,6 +263,7 @@ INT_PTR CALLBACK EditNodeDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l lvi.iSubItem = 1; SendMessage(itemInfo->hwndList, LVM_GETITEMA, 0, (LPARAM)&lvi); + SetDlgItemTextA(hwndDlg, IDC_IPV6, lvi.pszText); lvi.iSubItem = 2; -- cgit v1.2.3