diff options
Diffstat (limited to 'protocols/ConnectionNotify/src')
-rw-r--r-- | protocols/ConnectionNotify/src/ConnectionNotify.cpp | 2 | ||||
-rw-r--r-- | protocols/ConnectionNotify/src/options.cpp | 4 | ||||
-rw-r--r-- | protocols/ConnectionNotify/src/resource.h | 77 | ||||
-rw-r--r-- | protocols/ConnectionNotify/src/stdafx.h | 2 |
4 files changed, 49 insertions, 36 deletions
diff --git a/protocols/ConnectionNotify/src/ConnectionNotify.cpp b/protocols/ConnectionNotify/src/ConnectionNotify.cpp index df5997621c..d328c0bfab 100644 --- a/protocols/ConnectionNotify/src/ConnectionNotify.cpp +++ b/protocols/ConnectionNotify/src/ConnectionNotify.cpp @@ -148,7 +148,7 @@ void LoadSettings() g_plugin.FgColor = g_plugin.getDword("PopupFgColor", (uint32_t)0x000000); g_plugin.iFiltersCount = g_plugin.getDword("FiltersCount"); g_plugin.iStatusMask = g_plugin.getWord("StatusMask", 16); - for (int i = 0; i < MAX_STATUS_COUNT; i++) { + for (int i = 0; i < MAX_STATUS_COUNT-1; i++) { char buff[128]; mir_snprintf(buff, "Status%d", i); g_plugin.iStatus[i] = (g_plugin.getByte(buff, 0) == 1); diff --git a/protocols/ConnectionNotify/src/options.cpp b/protocols/ConnectionNotify/src/options.cpp index b643349249..131c44bef8 100644 --- a/protocols/ConnectionNotify/src/options.cpp +++ b/protocols/ConnectionNotify/src/options.cpp @@ -170,7 +170,7 @@ INT_PTR CALLBACK DlgProcConnectionNotifyOpts(HWND hwndDlg, UINT msg, WPARAM wPar // Initialize LVITEM members that are common to all // items. lvI.mask = LVIF_TEXT; - for (int i = 0; i < MAX_STATUS_COUNT; i++) { + for (int i = 0; i < MAX_STATUS_COUNT-1; i++) { lvI.pszText = Clist_GetStatusModeDescription(ID_STATUS_ONLINE + i, 0); lvI.iItem = i; ListView_InsertItem(hwndList, &lvI); @@ -353,7 +353,7 @@ INT_PTR CALLBACK DlgProcConnectionNotifyOpts(HWND hwndDlg, UINT msg, WPARAM wPar g_plugin.setByte("ResolveIp", g_plugin.bResolveIp); g_plugin.setByte("FilterDefaultAction", g_plugin.iDefaultAction); - for (int i = 0; i < MAX_STATUS_COUNT; i++) { + for (int i = 0; i < MAX_STATUS_COUNT-1; i++) { char buff[128]; mir_snprintf(buff, "Status%d", i); g_plugin.iStatus[i] = (ListView_GetCheckState(GetDlgItem(hwndDlg, IDC_STATUS), i) ? TRUE : FALSE); diff --git a/protocols/ConnectionNotify/src/resource.h b/protocols/ConnectionNotify/src/resource.h index 2fac35edd3..91f09a984e 100644 --- a/protocols/ConnectionNotify/src/resource.h +++ b/protocols/ConnectionNotify/src/resource.h @@ -1,33 +1,46 @@ -#ifndef IDC_STATIC -#define IDC_STATIC (-1) -#endif +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by W:\miranda-ng\protocols\ConnectionNotify\res\ConnectionNotify.rc +// +#define VS_VERSION_INFO 1 +#define IDI_ICON1 101 +#define IDD_OPT_DIALOG 102 +#define IDI_ICON2 103 +#define IDD_FILTER_DIALOG 105 +#define IDI_ICON3 110 +#define IDI_ICON4 111 +#define IDI_ICON5 114 +#define IDI_ICON6 115 +#define ID_TEXT_NAME 1000 +#define IDC_RESOLVEIP 1001 +#define IDC_LIST_EXCEPTIONS 1002 +#define IDC_INTERVAL 1003 +#define ID_CHK_DEFAULTACTION 1004 +#define ID_DELETE 1005 +#define ID_DOWN 1006 +#define ID_ADD 1007 +#define ID_UP 1008 +#define IDC_SETCOLOURS 1009 +#define IDC_INTERVAL1 1010 +#define IDC_BGCOLOR 1011 +#define IDC_FGCOLOR 1012 +#define IDC_STATUS 1016 +#define ID_TXT_LOCAL_IP 1070 +#define ID_TXT_REMOTE_IP 1071 +#define ID_CBO_ACTION 1074 +#define ID_TXT_REMOTE_PORT 1075 +#define ID_TXT_LOCAL_PORT 1076 +#define ID_CANCEL 1077 +#define ID_OK 1078 +#define IDC_STATIC -1 -#define IDI_ICON1 101 -#define IDD_OPT_DIALOG 102 -#define IDI_ICON2 103 -#define IDD_FILTER_DIALOG 105 -#define IDI_ICON3 110 -#define IDI_ICON4 111 -#define IDI_ICON5 114 -#define IDI_ICON6 115 -#define ID_TEXT_NAME 1000 -#define IDC_RESOLVEIP 1001 -#define IDC_LIST_EXCEPTIONS 1002 -#define IDC_INTERVAL 1003 -#define ID_CHK_DEFAULTACTION 1004 -#define ID_DELETE 1005 -#define ID_DOWN 1006 -#define ID_ADD 1007 -#define ID_UP 1008 -#define IDC_SETCOLOURS 1009 -#define IDC_INTERVAL1 1010 -#define IDC_BGCOLOR 1011 -#define IDC_FGCOLOR 1012 -#define IDC_STATUS 1016 -#define ID_TXT_LOCAL_IP 1070 -#define ID_TXT_REMOTE_IP 1071 -#define ID_CBO_ACTION 1074 -#define ID_TXT_REMOTE_PORT 1075 -#define ID_TXT_LOCAL_PORT 1076 -#define ID_CANCEL 1077 -#define ID_OK 1078 +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 101 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/protocols/ConnectionNotify/src/stdafx.h b/protocols/ConnectionNotify/src/stdafx.h index 436385367b..d55f2c1910 100644 --- a/protocols/ConnectionNotify/src/stdafx.h +++ b/protocols/ConnectionNotify/src/stdafx.h @@ -43,7 +43,7 @@ struct CMPlugin : public PLUGIN<CMPlugin> int iInterval; int iInterval1; bool bResolveIp; - int iStatus[MAX_STATUS_COUNT]; + int iStatus[MAX_STATUS_COUNT-1]; int iFiltersCount; int iDefaultAction = TRUE; uint16_t iStatusMask; |