diff options
author | George Hazan <ghazan@miranda.im> | 2019-01-20 22:50:52 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-01-20 22:50:52 +0300 |
commit | 8c18d1fe6f83807116c065e548ee6b567f4b49a1 (patch) | |
tree | c01b9461b4ee00ffae0ec9f028087b67d7c49feb /plugins/StatusChange/src | |
parent | 236dfc4581f03c670f4b5a5b076b2910ae25459b (diff) |
fixes #1776 (any traces of URL* related constants removed)
Diffstat (limited to 'plugins/StatusChange/src')
-rw-r--r-- | plugins/StatusChange/src/main.cpp | 18 | ||||
-rw-r--r-- | plugins/StatusChange/src/resource.h | 3 | ||||
-rw-r--r-- | plugins/StatusChange/src/stdafx.h | 2 |
3 files changed, 0 insertions, 23 deletions
diff --git a/plugins/StatusChange/src/main.cpp b/plugins/StatusChange/src/main.cpp index 926095c98b..16b81f6d24 100644 --- a/plugins/StatusChange/src/main.cpp +++ b/plugins/StatusChange/src/main.cpp @@ -2,7 +2,6 @@ TOPTIONS Options;
HICON hIconMsg;
-HICON hIconUrl;
HICON hIconFile;
CMPlugin g_plugin;
@@ -34,8 +33,6 @@ void LoadOptions() memset(&Options, 0, sizeof(Options));
Options.MessageRead = (BOOL)g_plugin.getByte("MessageRead", FALSE);
Options.MessageSend = (BOOL)g_plugin.getByte("MessageSend", TRUE);
- Options.UrlRead = (BOOL)g_plugin.getByte("UrlRead", FALSE);
- Options.UrlSend = (BOOL)g_plugin.getByte("UrlSend", TRUE);
Options.FileRead = (BOOL)g_plugin.getByte("FileRead", FALSE);
Options.FileSend = (BOOL)g_plugin.getByte("FileSend", TRUE);
Options.ChangeTo = (INT)g_plugin.getDword("ChangeTo", ID_STATUS_ONLINE);
@@ -121,15 +118,11 @@ static INT_PTR CALLBACK DlgProcStatusChangeOpts(HWND hwndDlg, UINT msg, WPARAM w hIconMsg = (HICON)CopyImage(Skin_LoadIcon(SKINICON_EVENT_MESSAGE), IMAGE_ICON, 16, 16, LR_COPYFROMRESOURCE);
SendDlgItemMessage(hwndDlg, IDC_MSGICON, STM_SETICON, (WPARAM)hIconMsg, 0);
- hIconUrl = (HICON)CopyImage(Skin_LoadIcon(SKINICON_EVENT_URL), IMAGE_ICON, 16, 16, LR_COPYFROMRESOURCE);
- SendDlgItemMessage(hwndDlg, IDC_URLICON, STM_SETICON, (WPARAM)hIconUrl, 0);
hIconFile = (HICON)CopyImage(Skin_LoadIcon(SKINICON_EVENT_FILE), IMAGE_ICON, 16, 16, LR_COPYFROMRESOURCE);
SendDlgItemMessage(hwndDlg, IDC_FILEICON, STM_SETICON, (WPARAM)hIconFile, 0);
CheckDlgButton(hwndDlg, IDC_CHK_MESSAGEREAD, Options.MessageRead ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(hwndDlg, IDC_CHK_MESSAGESEND, Options.MessageSend ? BST_CHECKED : BST_UNCHECKED);
- CheckDlgButton(hwndDlg, IDC_CHK_URLREAD, Options.UrlRead ? BST_CHECKED : BST_UNCHECKED);
- CheckDlgButton(hwndDlg, IDC_CHK_URLSEND, Options.UrlSend ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(hwndDlg, IDC_CHK_FILEREAD, Options.FileRead ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(hwndDlg, IDC_CHK_FILESEND, Options.FileSend ? BST_CHECKED : BST_UNCHECKED);
@@ -169,14 +162,6 @@ static INT_PTR CALLBACK DlgProcStatusChangeOpts(HWND hwndDlg, UINT msg, WPARAM w Options.MessageSend = !Options.MessageSend;
PostMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
break;
- case IDC_CHK_URLREAD:
- Options.UrlRead = !Options.UrlRead;
- PostMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
- break;
- case IDC_CHK_URLSEND:
- Options.UrlSend = !Options.UrlSend;
- PostMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
- break;
case IDC_CHK_FILEREAD:
Options.FileRead = !Options.FileRead;
PostMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
@@ -281,8 +266,6 @@ static INT_PTR CALLBACK DlgProcStatusChangeOpts(HWND hwndDlg, UINT msg, WPARAM w case PSN_APPLY:
g_plugin.setByte("MessageRead", (BYTE)Options.MessageRead);
g_plugin.setByte("MessageSend", (BYTE)Options.MessageSend);
- g_plugin.setByte("UrlRead", (BYTE)Options.UrlRead);
- g_plugin.setByte("UrlSend", (BYTE)Options.UrlSend);
g_plugin.setByte("FileRead", (BYTE)Options.FileRead);
g_plugin.setByte("FileSend", (BYTE)Options.FileSend);
g_plugin.setDword("ChangeTo", (DWORD)Options.ChangeTo);
@@ -304,7 +287,6 @@ static INT_PTR CALLBACK DlgProcStatusChangeOpts(HWND hwndDlg, UINT msg, WPARAM w case WM_DESTROY:
DestroyIcon(hIconMsg);
- DestroyIcon(hIconUrl);
DestroyIcon(hIconFile);
break;
}
diff --git a/plugins/StatusChange/src/resource.h b/plugins/StatusChange/src/resource.h index 9b48911f7c..668f5c35fc 100644 --- a/plugins/StatusChange/src/resource.h +++ b/plugins/StatusChange/src/resource.h @@ -25,12 +25,9 @@ #define IDC_RAD_OUTTOLUNCH 2010
#define IDC_CHK_MESSAGEREAD 3001
#define IDC_CHK_MESSAGESEND 3002
-#define IDC_CHK_URLREAD 3003
-#define IDC_CHK_URLSEND 3004
#define IDC_CHK_FILEREAD 3005
#define IDC_CHK_FILESEND 3006
#define IDC_MSGICON 4001
-#define IDC_URLICON 4002
#define IDC_FILEICON 4003
// Next default values for new objects
diff --git a/plugins/StatusChange/src/stdafx.h b/plugins/StatusChange/src/stdafx.h index a1a22ef235..7d6e3b3146 100644 --- a/plugins/StatusChange/src/stdafx.h +++ b/plugins/StatusChange/src/stdafx.h @@ -27,8 +27,6 @@ struct TOPTIONS {
BOOL MessageRead;
BOOL MessageSend;
- BOOL UrlRead;
- BOOL UrlSend;
BOOL FileRead;
BOOL FileSend;
|