From d5f5b695cb8311e7dbfcc0526777b2ce640782e2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 27 Nov 2016 22:57:03 +0300 Subject: magic control id returned (fixes #636) --- src/core/stdmsg/src/msgdialog.cpp | 2 +- src/core/stdmsg/src/resource.h | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/core') diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp index 879a294db4..f119a3435a 100644 --- a/src/core/stdmsg/src/msgdialog.cpp +++ b/src/core/stdmsg/src/msgdialog.cpp @@ -178,7 +178,7 @@ static void SetDialogToType(HWND hwndDlg) ShowMultipleControls(hwndDlg, infoLineControls, _countof(infoLineControls), SW_HIDE); if (dat->hContact) { - ShowMultipleControls(hwndDlg, buttonLineControls, _countof(buttonLineControls), (g_dat.flags&SMF_SHOWBTNS) ? SW_SHOW : SW_HIDE); + ShowMultipleControls(hwndDlg, buttonLineControls, _countof(buttonLineControls), (g_dat.flags & SMF_SHOWBTNS) ? SW_SHOW : SW_HIDE); if (!db_get_b(dat->hContact, "CList", "NotOnList", 0)) ShowWindow(GetDlgItem(hwndDlg, IDC_ADD), SW_HIDE); } diff --git a/src/core/stdmsg/src/resource.h b/src/core/stdmsg/src/resource.h index 872db1500b..197b67b769 100644 --- a/src/core/stdmsg/src/resource.h +++ b/src/core/stdmsg/src/resource.h @@ -127,12 +127,7 @@ #define IDC_RADIO1 1067 #define IDC_RADIO2 1068 #define IDC_RADIO3 1069 -#define IDC_TEXT 1064 -#define IDC_BKG 1065 -#define IDC_TIMEOUT 1067 -#define IDC_HIGHLIGHT 1068 -#define IDC_TEXTO 1069 -#define IDC_LOGGING 1069 +#define IDC_ADD 1070 #define IDC_LIST 1072 #define IDC_TAB 1074 #define IDC_1 1075 @@ -146,9 +141,14 @@ #define IDC_9 1083 #define IDC_10 1084 #define IDC_11 1085 +#define IDC_TEXT 1086 +#define IDC_BKG 1087 +#define IDC_TIMEOUT 1088 +#define IDC_HIGHLIGHT 1089 +#define IDC_TEXTO 1090 +#define IDC_LOGGING 1091 #define IDC_DETAILS 1469 -#define IDC_ADD 1470 #define IDC_USERMENU 1471 #define IDC_STMSGLOGGROUP 1442 #define IDC_PROTOCOL 1580 -- cgit v1.2.3