summaryrefslogtreecommitdiff
path: root/protocols/Tox/src
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-02-22 10:08:45 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-02-22 10:08:45 +0000
commit0e8ffa6f388f28411decbcc6fe6c834029830714 (patch)
treeaa80f7178d7b1c1fee66c7a0bf06f45e51620441 /protocols/Tox/src
parenteb85ef3577fb403d7a951ce9a135e13fdbe6e601 (diff)
Tox: cosmetics
git-svn-id: http://svn.miranda-ng.org/main/trunk@12240 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src')
-rw-r--r--protocols/Tox/src/resource.h2
-rw-r--r--protocols/Tox/src/tox_options.cpp6
2 files changed, 8 insertions, 0 deletions
diff --git a/protocols/Tox/src/resource.h b/protocols/Tox/src/resource.h
index e554f90be7..0375fdef4b 100644
--- a/protocols/Tox/src/resource.h
+++ b/protocols/Tox/src/resource.h
@@ -10,6 +10,8 @@
#define IDD_OPTIONS_NODES 107
#define IDD_ADDNODE 108
#define IDD_NODE_EDITOR 108
+#define IDD_OPTIONS_MAIN1 109
+#define IDD_OPTIONS_AV 109
#define IDI_TOX 120
#define IDC_TOXID 1001
#define IDC_CLIPBOARD 1002
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;